/django-ecommerce-api

An E-commerce API built using Django Rest Framework.

Primary LanguagePython

django-ecommerce-api

An E-commerce API built using Django Rest Framework.

About Project

The project has 5 local Apps:

  • Users
  • Products
  • Orders
  • Checkouts

Basic Feature

  • Registration using either phone and email (Activate account by email)
  • Login system with Json Web Token(JWT)
    • Login with email, password
    • Login with phone number(send SMS code)
  • Password change endpoint.
  • Custom permissions set for necessary endpoints(for each app)
  • Payment system using Zarinpal and IDpay
  • Documentation using Swagger UI

Built with

  • Django
  • Django Rest Framework

Technologies Used

  • PostgreSQL
  • Celery

ER Diagram

Database Relationship diagram generated using dbdiagram

Entity-Relationship Code link E-commerce

Getting Started

  1. Clone this repository to your local machine:
git clone https://github.com/shahriar-fattahi/django-ecommerce-api
  1. Rename the .env.example file found in the root directory of the project to .env and update the environment variables accordingly.

  2. Create a Virtual Environment:

python -m venv your_venv_name
  1. Install Requirements:
pip install -r requirements.txt