An E-commerce API built using Django Rest Framework.
This is an e-commerce API built using Django REST Framework (DRF). It allows you to (CRUD) products, users, orders, and order items base on Entity-Attribute-Value Model.
- Django 4.2 & Python 3.11
- Install via Pip or Docker
- Implement Entity Attribute Value model(EAV)
- Authentication via JWT
- Media storage using Amazon S3
- Create Multiple Wishlists
- Rating for product
- Celery
- Postgres
- JWT
- Django Rest Framework
- docker
Eccomerce-APi can be installed via Pip or Docker. To start, clone the repo to your local computer and change into the proper directory.
git clone https://github.com/ronin1777/Eccomerce-APi.git
python -m venv .venv
# Windows
.venv\Scripts\Activate
macOS
source .venv/bin/activate
(.venv) $ pip install -r requirements.txt
(.venv) $ python manage.py makemigrations
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000
First in project root Create a directory named scripts and inside it create a file named run.sh with the same content:
#!/bin/sh
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
then run docker-compose
docker-compose up -d --build
If you want to use Docker, follow these steps:
- Add environment variables:
- server: docker
- configuration files: select docker-compose file
- sevice: select app
- Next and create
- Enable Django support(pycharm):
- go to Languages & Frameworks and select Django
- Django project root: select crs as root
- settings: go to src/shop/envs and select development.py
- Run &Dbuge Configurations:
- edit configuration add Djnago server
- Host: 0.0.0.0
- python interpereter: select Remote python Docker compose(that environment you created it)
Note
Django support Available only in PyCharm Professional