MyShop is a full-featured e-commerce application built with Python and Django. It provides a seamless shopping experience from product browsing to checkout, featuring a recommendation engine and multi-language support.
- Product Catalog: Browse products organized by categories with high-quality images and descriptions.
- Shopping Cart: A session-based shopping cart allowing users to add, update, and remove products.
- Order Management: Secure checkout process with order persistence in the database.
- Internationalization (i18n): Support for multiple languages (e.g., English, Spanish) to reach a global audience.
- Recommendation Engine: Intelligent "users who bought this also bought" suggestions powered by Redis.
- Payment Integration: Secure payment processing integrated with Stripe.
- PDF Invoices: Automatic generation of PDF invoices for customers upon successful order completion.
- Asynchronous Tasks: Background email notifications handled by Celery and RabbitMQ.
| Component | Technology |
|---|---|
| Backend | Django (Python) |
| Database | PostgreSQL / SQLite |
| Caching/NoSQL | Redis |
| Task Queue | Celery & RabbitMQ |
| Payment Gateway | Stripe API |
| Frontend | Bootstrap, jQuery, CSS3 |
Before you begin, ensure you have the following installed:
- Python 3.8+
- Redis Server
- RabbitMQ (for Celery background tasks)
- A Stripe account for API keys
-
Clone the repository:
git clone [https://github.com/satish24011993/myshop.git](https://github.com/satish24011993/myshop.git) cd myshop -
Create and activate a virtual environment:
python -m venv venv # On Windows: venv\Scripts\activate # On macOS/Linux: source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure Environment Variables: Create a
.envfile in the root directory and add your Stripe keys:STRIPE_PUBLISHABLE_KEY=your_pub_key STRIPE_SECRET_KEY=your_sec_key STRIPE_WEBHOOK_SECRET=your_webhook_secret
-
Apply migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Start Redis server:
redis-server
-
Start Celery worker (in a new terminal):
celery -A myshop worker -l info
-
Start the Django server:
python manage.py runserver
Navigate to http://127.0.0.1:8000/ to view the site.
myshop/
├── cart/ # Shopping cart logic
├── orders/ # Order processing and PDF generation
├── payment/ # Stripe integration
├── shop/ # Product catalog and core logic
├── myshop/ # Project configuration (settings, URLs)
├── static/ # CSS, JS, and Images
├── templates/ # HTML Templates
└── manage.py
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Satish Kurakula 📩 Email: satishkurakula073@gmail.com
🔗 Project Link: https://github.com/satish24011993/myshop
- Add Swagger/Redoc for API documentation.
- Integrate unit tests for the recommendation engine.
- Implement Docker containerization for easier deployment.