fabiangro / django-e-commerce-api

e-commerce rest api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-commerce Django Rest Api

Simple django web app built to use as rest api for e-commerce website with JWT authorization

Installation

  1. Setup virtualenv
virtualenv env
source env/bin/activate
  1. Install requirements
pip install -r requirements.txt
  1. Create .env file in root directory and set database connection details. Example:
SECRET_KEY = 'django-secret-key'
DEBUG = True
DATABASE_URL = localhost
DATABASE_NAME = database_name
DATABASE_USER = postgres
DATABASE_PASSWORD = postgres
  1. Migrate
python manage.py migrate
  1. Run
python manage.py runserver

Used technologies