The BookStore front and back is provided by the teacher [email protected] and build it on docker containers.
The database Mongodb is the Community version running local on AWS EC2 Machine
Nginx is working on another AWS EC2 machine working as proxy
Nginx is the same configuration as the last Lab
The main reason to use docker is to isolate the dependences to avoid problems on the EC2 Machine, react will use docker-compose and Dockerfile when the machine starts or the container fails restart automatically, Dockerfile and docker-compose are located on this repo on frontend folder.
When everthing is done please run this command where is located your docker-compose.yml
sudo docker-compose up -d
sudo docker-compose up -d
Follow the guide provided by Mongodb team to install Mongodb Community edition on your AWS EC2 Machine Setup Mongo
To connect to the database on the backend using mongoose the database url look like this
mongo "mongodb://${DBUSER}:${DBPASSWORD}@<host>:<port>/<dbname>?authSource=admin"
When you visit the webpage you will see