A comprehensive RESTful API for e-commerce applications built with Django REST Framework. This backend framework is designed to support modern e-commerce operations with product management, user authentication, shopping cart functionality, and order processing capabilities.
-
User Management
- Authentication & Authorization
- User profiles with shipping addresses
- Role-based permissions
-
Product Management
- Product categories and subcategories
- Product variants (size, color, etc.)
- Product images and details
- Inventory tracking
-
Shopping Experience
- Shopping cart functionality
- Wishlists
- Product reviews and ratings
-
Order Processing
- Order creation and tracking
- Order status updates
- Order history
-
Payment Integration
- payment methods
- Secure payment processing
- Docker and Docker Compose
- Git
-
Clone the repository:
git clone https://github.com/your-username/ecommerce-api.git cd ecommerce-api -
Set up environment variables:
cp .env.development .env
Edit the
.envfile with your specific configuration if needed. -
Build and run the Docker containers:
docker-compose up --build
-
The API will be available at:
http://localhost:8000/api/v1/ -
Access the interactive API documentation:
http://localhost:8000/api/docs/ -
Admin interface:
http://localhost:8000/admin/ Username: admin Password: admin
This project supports multiple environments:
- Development:
.env.development- For local development with debugging tools - Staging:
.env.staging- For testing in a production-like environment - Production:
.env.production- For production deployment with security features
To specify the environment when starting the containers:
DJANGO_ENVIRONMENT=staging docker-compose upThis project is licensed under the MIT License - see the LICENSE file for details.