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
-
Start with installing Python.
-
Clone project.
-
Create a virtual environment:
python -m venv env- Install Django:
pip install django- Install the required dependencies:
pip install -r requirements.txt- Create database from models:
python manage.py makemigrationspython manage.py migrate- Run server:
python manage.py runserver- Run tests:
python .\manage.py test- Install Python library you to read environment variables:
pip install python-dotenv
- Run Docker:
docker-compose up