just clone the repo
- For Working on your machine
- "yarn" or "npm i"
- copy .env.example to .env and change configuration to yours
- NODE_PORT=3000 NODE_PORT_HOT=9000 npm run local //NODE_PORT is optional, default is 3000. NODE_PORT_HOT is optional, default 9000, is webpack devServer.
- Goto http://localhost:9000, this is webpack devserver with hot reload. Please config "plugins/react/gulpfile.js" -> webpackDevServer -> proxy to allow what routes you would like to redirect to 300. Default /api/v1 will be redirect to 3000
- For run on Server
- copy .env.example to path which you set in config/env-path.js and change configuration to yours
- NODE_ENV={env_name} npm run build
- NODE_PORT={port} pm2 start ecosystem.config.js --env {env_name}
- env_name: development, production, staging. Optional
- Using image, external js, fonts,...
- Copy you files to public/
- Please do not put your files in public/assets. This is ignored by .gitignore