Skip to content

AdityaSanthosh/EcommerceStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce Store API

This repository contains the backend API for a simple e-commerce store, built using Django and Django Rest Framework.

Product Flow
  1. Checkout the cart which freezes the prices for 10 mins
  2. Get total price which calculates cart value with frozen prices after checkout
  3. Place order considering checked out prices
  4. Proceed with payment which means order is placed and payment is attached to it later

Models

  • Item: Represents a product.
  • Cart: User's shopping cart.
  • CartItem: Items within a cart.
  • Order: Completed order.
  • OrderItem: Items within an order.

Setup

  1. Clone the repository:
    git clone <repository_url>
  2. Create a virtual environment:
    python -m venv venv
    source venv/bin/activate  # On macOS and Linux
    venv\Scripts\activate  # On Windows
  3. Install dependencies:
    pip install -r requirements.txt
  4. Run migrations:
    python manage.py migrate
  5. Start the development server:
    python manage.py runserver

Usage

  • Use an API client (e.g., Postman, Insomnia) to interact with the API endpoints.
  • Set the HTTP_USER_ID header in your requests to identify the user.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages