mirror of
https://github.com/aelve/guide.git
synced 2024-11-23 12:15:06 +03:00
eaa967cec6
* separately import vue, vue-class-component * changed categoryStatus declaration, refactored imports |
||
---|---|---|
.. | ||
build | ||
client | ||
types | ||
utils | ||
.editorconfig | ||
.gitignore | ||
babel.config.js | ||
config.js | ||
index.html | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
prod.tsconfig.json | ||
README.md | ||
server.ts | ||
tsconfig.json | ||
tslint.json |
Commands
dev
- Start developing environment (starts both server and setup client middleware for server).build
- Builds to /dist folder. Compiles (from ts to js) server right in dist folder, client files compiled in /dist/src.
Deploy process
Requirements: Node version should be >= 11, because of using fs async methods which experimental now.
-
git pull
-
npm i
-
Now you have a choice how to set PORT and API_URL. Either set them in front/config.js, or use export (set) PORT=%port_number% API_URL=%api_url% (for example "http://localhost:4400" quotes matter) with dev commands.
-
npm run build
-
cd dist
-
npm i
-
export (set) NODE_ENV=production
-
node server