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 serverandReact.js front-endis DO NOT USE DOCKER, since a native runtime should have a better performance on CPU and I/O. Install packages forNode.jsorReact.jsfromnpmoryarnwill 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 bypm2. 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 byreact-scripts. If new package installed, you need to manually restart the frontend.