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 |
In order to deploy this application with Helm you'll need to update a few fields either with a custom values.yaml file or passed in on the cli.
You'll need to update all of these fields with your own values.
helm upgrade --install microblog-backend ./chart \
--set hostname=backend.example.com \
--set image.repository=gcr.io/my_registry/backend \
--set image.tag=asd9f8