React Docker Boilerplate

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.


Setup and Usage

Pull the source code

git clone [url]

If pulled for the first time or the package.json changed run

docker compose build

Starting the environment in background

docker compose up -d

To see the logs of your app

docker compose logs -f react

If 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 down

For Any support

Please raise an issue. Also you can contact me @ twitter | Linkedin


View Github