Projeto do curso: Django with React | An Ecommerce Website ![pt-br](https://camo.githubusercontent.com/6ad14b5b6bf342a91e8040dbf0d4c1b27b85d5c8ea96cbd9520d382dcd7afb37/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d70742d2d62722d677265656e2e737667)
This is the repository of the project developed in the course Django with React | An Ecommerce Website.To include one more subject of my interest, I implemented the project with Docker, creating containers for the frontend, backend and database. As the project uses a Postgres database, a container for PgAdmin4 was also included. I would like to recommend the two videos below from the Very Academy channel, which helped me a lot in this dokerization process.
- Docker Compose | How to configure PostgreSQL or MySQL database with Python Django
- Docker-Compose | Dockerizing pgAdmin and Postgres - Volumes and Custom Network IP
At the end of the course the instructor shows how to put the images in AWS buckets and deploy with Heroku, but this project does not contain these steps. As my goal was more to study the technologies (Django REST, React and Docker) I thought it was better to leave this repository without these steps.
- Have docker and docker-compose installed
- Create an
.env
file inside the project root with the project's environment variables - Create an
.env
hard link inside the/backend
directory
Set the environment variables below in the .env
file:
- BACK_END_PROJECT_FOLDER
- FRONT_END_PROJECT_FOLDER
- PERSISTING_DB_FOLDER
- PERSISTING_PG_ADMIN_FOLDER
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
- PGADMIN_DEFAULT_EMAIL
- PGADMIN_DEFAULT_PASSWORD
- DJANGO_SUPERUSER_USERNAME
- DJANGO_SUPERUSER_EMAIL
- DJANGO_SUPERUSER_PASSWORD
- SECRET_KEY
This repository has no commercial purposes and is not equivalent to the course in which the project was developed, for a better understanding of the subject I recommend buying the course.