Node.js local development on docker container and nodemon
You don't need to install Node.js or npm on your machine to develop Node.js, just using only Docker
Before you begin, you need to make sure you have installed Docker Desktop
Start project, run
docker-compose up
In case if you want to use npm or Node.js commands.
docker-compose run --rm app <YOUR-DESIRED-COMMAND>
ex. docker-compose run app npm install jest --save
If you want to re-build the container please stop the current one and run the following command below.
docker-compose up --build