React.js web app with docker container example.
Visit express dockerize backend in this link.
First, clone this repository
git clone git@github.com:novalramdhani/react-dockerize.git
cd react-dockerize
Next step, install all dependencies in node_modules
.
npm install && npm update
# or with yarn
yarn && yarn upgrade
Last step, run local development server.
npm run start
# or with yarn
yarn start
Congrats!, your application running in localhost:3000
Run docker compose with this command.
docker-compose up
# running in background
docker-compose up -d
If you down docker compose, you can.
docker-compose down