This is a scalable e-commerce platform with Django as the backend, Flask for notification services, and Kafka for message streaming.
- django_backend: Contains the Django application for managing products and orders.
- flask_notification_service: A Flask application that handles email notifications.
- kafka_setup: Contains the Kafka setup using Docker.
- aws: Contains AWS configuration for sending emails and uploading files.
- Clone the repository.
- Navigate to
django_backendand install dependencies. - Run migrations and start the server.
- Start the Flask notification service.
- Set up Kafka using Docker.
- Django
- Flask
- Kafka
- AWS (SES, S3)
-
Set Up Django Backend:
- Navigate to the
django_backendfolder. - Run the commands:
python3 manage.py migrate python3 manage.py runserver
- Navigate to the
-
Set Up Flask Notification Service:
- Navigate to the
flask_notification_servicefolder. - Run:
python3 app.py
- Navigate to the
-
Set Up Kafka:
- Navigate to the
kafka_setupfolder. - Run:
docker-compose up -d
- Navigate to the
-
Interact with the AWS Services:
- Ensure that your AWS credentials are configured to use SES and S3.
- Make sure to install all necessary Python packages using
pip install <package_name>, includingDjango,Flask,kafka-python, andboto3. - Update your AWS configurations and secrets in the relevant files.
Feel free to modify the code as needed for your specific requirements! Let me know if you need any additional features or further explanations.