Skip to content

A powerful e-commerce platform built on Django and Django REST Framework. Easily manage products, collections, customers, orders, and reviews with a user-friendly administrative interface and a flexible RESTful API.

Notifications You must be signed in to change notification settings

NipunChamika/storefront-v3.0

Repository files navigation

Storefront v3.0

The Django Store Application is a powerful backend API designed to facilitate the management of e-commerce operations such as products, collections, customers, orders, and reviews. Built on the Django framework and powered by the Django REST Framework, this application offers a robust backend infrastructure coupled with a flexible and scalable API for seamless integration with frontend applications.

Installation and Setup

  1. Clone the repository to your local machine:
git clone https://github.com/NipunChamika/storefront-v3.0.git
  1. Navigate to the project directory:
cd storefront-v3.0
  1. Install Pipenv (if not already installed):
pip install pipenv
  1. Configure the database settings in storefront/settings/dev.py file before applying migrations:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',  # Change this to your database engine
        'NAME': 'storefront3',  # Change this to your database name
        'HOST': 'localhost',  # Change this to your database host
        'USER': os.getenv('DATABASE_USER'),  # Change this to your database user
        'PASSWORD': os.getenv('DATABASE_PASSWORD')  # Change this to your database password
    }
}
  1. Install dependencies using Pipenv:
pipenv install
  1. Activate the virtual environment:
pipenv shell
  1. Apply database migrations:
python manage.py migrate
  1. Populate the database with seed data:
python manage.py seed_db
  1. Create a superuser to access the admin interface:
python manage.py createsuperuser
  1. Start the development server:
python manage.py runserver

API Endpoints

  • /admin/
  • /store/products/
  • /store/products/{id}/
  • /store/collections/
  • /store/collections/{id}/
  • /store/carts/
  • /store/carts/{id}/
  • /store/carts/{id}/items/
  • /store/carts/{id}/items/{id}
  • /store/customers/
  • /store/customers/{id}/
  • /store/orders/
  • /store/orders/{id}/
  • /auth/jwt/create/
  • /auth/jwt/refresh/

Contributing

We welcome contributions from the community! To contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and submit a pull request.

About

A powerful e-commerce platform built on Django and Django REST Framework. Easily manage products, collections, customers, orders, and reviews with a user-friendly administrative interface and a flexible RESTful API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages