Simple django web app built to use as rest api for e-commerce website with JWT authorization
- Setup virtualenv
virtualenv env
source env/bin/activate
- Install requirements
pip install -r requirements.txt
- 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
- Migrate
python manage.py migrate
- Run
python manage.py runserver
- Django: used for web app
- django-rest-framework: used for api
- djoser: used for authentication