- Create Virtual Enviroment
virtualenv env
- Activate env enviroment
source back/bin/activate
- Move-into main folder
cd backend/main
- Install packages from requirements.txt
pip install -r requirements.txt
- Create env. A dot-env file to store database connection parameters
create using your file editor
- Add the following and configure with your appropriate parameters
DB_HOST = "localhost"
DB_NAME = "DATABASE_NAME"
DB_PASSWORD = "PASSWORD"
DB_USER = "DATABASE_USER"
- Running application
python3 manage.py runserver
- Django Migration
python3 manage.py makemigrations
- Creating Superuser
python3 manage.py createsuperuser
NOTE Access backend using localhost:PORT/admin/
This is an ongoing project to create a web application using Django and React to consume data stored in a Postgresql database. For any bugs noted or contribution, you are welcome to report.