This is a react + docker boilerplate which solves node_modules sync related issues while developing React application with docker. A detailed explanation can be found here.
Pull the source code
git clone [url]If pulled for the first time or the package.json changed run
docker compose buildStarting the environment in background
docker compose up -dTo see the logs of your app
docker compose logs -f reactIf you need to install any npm package.
docker compose exec react npm install <pacakge-name>To run any NPM command
docker compose exec react <npm-command>stop the containers
docker compose downPlease raise an issue. Also you can contact me @ twitter | Linkedin
