This is the backend API for our demo microblog (knockoff twitter) application.
It is written in Python using the Django framework.
- Python3
- pipenv - Install with
pip install pipenv
Install dependencies with pipenv install
python manage.py runserver
python manage.py migrate
gunicorn config.wsgi -b 0.0.0.0:8000
python manage.py createsuperuser
Then follow the prompt
Access http://{your_host}:8000/admin
User your superuser account to login
Environment variable | Options/Type | Default | Description |
---|---|---|---|
DEBUG | True/False | True | Enables or disables Django debug mode |
DB_NAME | String | postgres | Database name |
DB_USER | String | postgres | Database user's name |
DB_PASS | String | postgres | Database user's password |
DB_PORT | String | postgres | Database port number |