Inspired by tipsy. This instance was finished with React/Koa/Echarts, support server-side rendering
Live at https://gp.fedepot.com
Configure env
cp envrc.sample envrcedit the envrc file
Start api server
npm run build:api
node server/index.jsStart React dev
npm run devConfigure env
cp envrc.sample envrcedit the envrc and env.ts file
Build all resources
npm run build:allStart Api server
npm run start:apiStart SSR server
npm run start:ssrConfigure Nginx reverse proxy
Notes: Redis server should be installed and the host,port,password information should writed to envrc file
Build all resources
npm run build:allConfigure env
cp envrc.sample envrcedit the envrc and deploy/nginx.conf
For first time:
cd deploy && docker-compose upNext times:
cd deploy && docker-compose startFor https home address, copy nginx-ssl.conf to cover nginx.conf.
