- A simple Todo List App that was done with Reactjs a Webpack and Redux in frontend;
- The backend was did with Nodejs, ExpressJS, Node-restful and MongoDB;
- I trust in Docker and Docker-Compose to run all application tiers as containers (frontend, backend and database).
$ cd path/to/the/project/directory
- Build and start all layers (MongoDB, Bakckend API and Frontend) as back ground containers
$ docker-compose up -d --build
- Build, for production, and start all app layers (MongoDB, Backend API and Frontend) in containers running in background
$ docker-compose -f docker-compose.prod.yml up -d --build
-
Open http://localhost/ in your browser
-
Stop all containers
$ docker-compose down