Skip to content

Electronics E-commerce Django API using Django-ninja

Notifications You must be signed in to change notification settings

Aya-Jafar/Ecommerce-API-2

Repository files navigation

Introduction

Django Ninja is a web framework for building APIs with Django and Python 3.6+ version. It is designed to be fast, easy to use, and provide standards-based APIs. This readme provides a basic instruction to set up and use Django Ninja API.

ECommerce REST API

Electronic E-commerce Django API for selling and managing Elecronics using Django-ninja as the graduation project for Unicoding bootcamp

Features

  • JWT authentication
  • Friendly and easy to use API documantation
  • Customized user experience

Prerequisites

Before starting with Django Ninja API, ensure you have the following installed:

  • Python 3.6+
  • Django
  • Django Ninja

Installation

1- Install Python 3.6+ from the official website.

2- Install Django using pip command:

pip install django

3- Install Django Ninja using pip command:

pip install django-ninja

4- Clone the Repo using this command:

git clone https://github.com/Aya-Jafar/eCommerce-API-2.git

5- Install the required dependencies by running the following command in the project directory:

pip install -r requirements.txt

6- Run the following command to create the database tables

python manage.py migrate

7- Start the Django development server by running the following command:

python manage.py runserver

8-Open your web browser and navigate to http://localhost:8000/api/docs. This will display the API documentation generated by Django Ninja.