OneFin assignment for building movie-collection api for web application with JWT authentication
run below command in your terminal
git clone https://github.com/sachinkumar7277/oneFin_assignment.git
create and activate virtual environment
1. python -m venv venv
2. venv/Scripts/activate
Install all dependency or packages
3.pip install -r requirements.txt
We are using python-decouple library to hide our confidential data please follow .env_sample file and create your own .env file with all environment variable that is mentioned in .env_sample file
In settings.py
from decouple import config
SECRET_KEY = config('SECRET_KEY')
NAME=onefin
USER=postgres
PASSWORD=your Database password here
HOST=localhost
create database in postgreSQL and configure the NAME with database name in .env file
1. python manage.py makemigrations
2. python manage.py migrate
3. python manage.py runserver