Implementation of an online store based on Antonio Mele's book 'Django 4 by Example' containerized using Docker Compose.
Make sure you have the following tools installed:
- Clone the repository:
git clone https://github.com/sammyjankins/django_e_commerce.git
- Go to the project directory:
cd django_e_commerce/myshop
-
Fill the .env.project and .env.postgres files with actual data following .env.project.template and .env.postgres.template.
-
Build and start the containers:
docker-compose up -d
Migrations will be applied and superuser will be created automatically. Superuser credentials will be taken from the .env.project file.
- Check that the containers are running:
docker ps
Open the application in your browser:
http://localhost:80/
Log in to the admin panel using the credentials created in step 5:
http://localhost:80/admin/
Using the admin panel you can create and manage discount coupons. Discount information will be stored in the order data.
The application sends email notifications that indicate the creation of an order and payment notifications that contain an invoice in PDF format. This functionality is implemented using Сelery and RabbitMQ.
The application has a recommendation system. This functionality is implemented using Redis.
The application uses Stripe as a payment system.