this is repo for frontend and backend of SHOP using MERN stack
The deployed Site can be found at
- Install docker and git on the instance
- Checkout the shop-mern repository on the system
- Add the .env files for frontend and backend from the following link
https://vayustack.slack.com/archives/D02E2MWS31D/p1654232915774389
- Add the private and public key in backend repo from the follwoing link
https://vayustack.slack.com/archives/D02E2MWS31D/p1654233159372709
- Run the following commands to create docker images
docker build ./projfrontend -t shop-mern/frontend
docker build ./projbackend -t shop-mern/backend
- Run the following commands to run the containers for the frontend and backend server
docker run -p 80:3000 -d --restart=always --name=shop-mern-frontend shop-mern/frontend:latest
docker run -p 8000:8000 -d --restart=always --name=shop-mern-backend shop-mern/backend:latest
- Then go to godaddy DNS manager and link the public IP of local instance to shop subdomain to access the app at
- Create an AWS linux instance
- Install docker and git on the instance
- Checkout the shop-mern repository on the system
- Add the .env files for frontend and backend from the following link
https://vayustack.slack.com/archives/D02E2MWS31D/p1654232915774389
- Add the private and public key in backend repo from the follwoing link
https://vayustack.slack.com/archives/D02E2MWS31D/p1654233159372709
- Run the following commands to create docker images
docker build ./projfrontend -t shop-mern/frontend
docker build ./projbackend -t shop-mern/backend
- Run the following commands to run the containers for the frontend and backend server
docker run --net=host -d shop-mern/frontend:latest
docker run --net=host -d shop-mern/backend:latest
- Then go to godaddy DNS manager and link the public IP of AWS instance to shop subdomain to access the app at