This project is the backend for a simple e-commerce app. Built with Python/Django/Django REST framework.
A few of the things you can do with this app:
- Admin can create/update/delete product, category, company and cpu
- Authenticated users can make GET requests to product, category, company and cpu
- Unauthenticated users can't make GET requests
- Users can login to be authorized
-
Python - Follow instructions to install the latest version of python for your platform in the python docs
-
Virtual Enviornment - We recommend working within a virtual environment whenever using Python for projects. This keeps your dependencies for each project separate and organaized. Instructions for setting up a virual enviornment for your platform can be found in the python docs
-
PIP Dependencies - Once you have your virtual environment setup and running, run:
pip install -r requirements.txt
This will install all of the required packages we selected within the requirements.txt
file.
-
Django is a Python-based free and open-source web framework that follows the model–template–views architectural pattern
-
Django REST framework is a powerful and flexible toolkit for building Web APIs.
-
PostgreSQL The World's Most Advanced Open Source Relational Database
First ensure you are working using your created virtual environment.
To run the server locally, execute:
python manage.py runserver --settings=safeProject.settings_local
The app is deployed to Heroku
Username: admin
Password: admin
Username: user
Password: Aa1234500
Run test cases
python manage.py test --settings=safeProject.settings_local