Create_a_simple_e-commerce_from_scratch_and_deploy_using_docker
Create_a_simple_e-commerce_from_scratch_and_deploy_using_docker
https://resagratia.com/resources/blog/how-to-install-postgresql-and-pgad
min
Step 5 : Containerize it
It ensures that:
How it works:
How it works:
Uses Nginx to serve the static HTML, CSS, and JavaScript files.
How it works:
3. The frontend makes API calls to http://localhost:5000 (Flask backend) to fetch and
display products.
fetch("http://localhost:5000/products")
Step 6 : Run it
docker-compose up --build -d
docker -v
sudo curl -L
https://github.com/docker/compose/releases/latest/download/docker-
compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker --version
docker-compose --version
cd directory_with_pem_file
H/W
1. Is there a better way to do it ?