Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1005 Bytes

README.md

File metadata and controls

46 lines (32 loc) · 1005 Bytes

ECom Django API

ECom Build CI API URL

How To Set Up Project Locally?

Create & Activate Virtualenv

python3 -m venv venv
source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Add Database Settings

Create following environment variables :

    DB_NAME = <database name here> (default: postgres)
    DB_HOST_URL = <database url here> (default: localhost)
    DB_PORT = <database port here> (default: 5432)
    DB_USERNAME = <database username here> (default: postgres)
    DB_PASSWORD = <database password here> (default: password)

Run Project

Do Migrations

python manage.py makemigrations
python manage.py migrate

Run Django server

python manage.py runserver