Skip to content

verafes/store-backend-django

Repository files navigation

Backend for online store

Python Project Description:

An example of a backend system for online store as React App > frontend

The project is in progress

Technologies and Tools:

Python, Django framework, PyCharm, Docker

Project Description

A fully functional API backend (database, application logic, and APIs) is built with Django and using Django-Rest-Framework for serving endpoints.

The application is also Dockerized and uses a practical Postgresql database for secure and fast data storage and retrival. All the API endpoints are accessible from a browser like Chrome.

The project includes Unit tests for API endpoints and logic. For testing views directly using a request factory, the force_authenticate() method is used.

Features:

  • Versatile product categories
  • Products for each category
  • Details for each product
  • Create/Read/Update/Delete/Search products
  • Add to Cart, Checkout and Finalize order
  • Creating and managing customer account

Getting Started

  1. Start with installing Python.

  2. Clone project.

  3. Create a virtual environment:

python -m venv env
  1. Install Django:
pip install django
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create database from models:
python manage.py makemigrations
python manage.py migrate
  1. Run server:
python manage.py runserver
  1. Run tests:
python .\manage.py test
  1. Install Python library you to read environment variables:
pip install python-dotenv
  1. Run Docker:
docker-compose up 

About

Online store backend developed with Django, Python, Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages