Development

If you changed docker-compose.yaml or installation scripts, i.e. ./docker/**, remember to:

docker-compose build --parallel

Notes:

  • The best way to develop the Node.js server and React.js front-end is DO NOT USE DOCKER, since a native runtime should have a better performance on CPU and I/O. Install packages for Node.js or React.js from npm or yarn will not mess up your local environment. It is also easier to debug in the native environment.

  • Files in ./server/* are mounted into the docker /root/server/*, changes of files will trigger an auto-reload by pm2. There is no need to restart the docker container manually.

  • Files in ./frontend/* are mounted into the docker /root/frontend/*, changes of files will trigger auto-reload by react-scripts. If new package installed, you need to manually restart the frontend.