A Django REST Framework-based e-commerce backend that supports:
- User authentication (JWT, registration, login, roles)
- Product management (internal/external, categories, tags, images, variants, reviews)
- Cart and cart item management
- Bulk upload (JSON/CSV) for products, categories, tags
- Filtering, search, ordering, and more
git clone <your-repo-url>
cd discount-ecommerce-api
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
- Copy
sample_env
to.env
and fill in your secrets/configuration:
cp sample_env .env
- Edit
.env
as needed (seesample_env
for required variables).
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
- Swagger UI: http://localhost:8000/swagger/
- Redoc: http://localhost:8000/redoc/
- Django Admin: http://localhost:8000/admin/
- JWT authentication with roles (customer, seller, manager, admin)
- Product, category, tag, image, variant, review management
- Cart and cart item management (one cart per user)
- Bulk upload (JSON/CSV) for products, categories, tags
- Filtering, search, ordering on all major endpoints
- Admin dashboards for all models
Pull requests are welcome! Please open an issue first to discuss major changes.