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.
- Clone the repository to your local machine:
git clone https://github.com/NipunChamika/storefront-v3.0.git
- Navigate to the project directory:
cd storefront-v3.0
- Install Pipenv (if not already installed):
pip install pipenv
- 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
}
}
- Install dependencies using Pipenv:
pipenv install
- Activate the virtual environment:
pipenv shell
- Apply database migrations:
python manage.py migrate
- Populate the database with seed data:
python manage.py seed_db
- Create a superuser to access the admin interface:
python manage.py createsuperuser
- Start the development server:
python manage.py runserver
/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/
We welcome contributions from the community! To contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and submit a pull request.