Skip to content

cloudbees-days/microblog-backend

 
 

Repository files navigation

microblog-backend

This is the backend API for our demo microblog (knockoff twitter) application.

It is written in Python using the Django framework.


How to run it

Install requirements

  • Python3
  • pipenv - Install with pip install pipenv

Install dependencies with pipenv install

Run a local server

python manage.py runserver

Perform database migration

python manage.py migrate

Run production server

gunicorn config.wsgi -b 0.0.0.0:8000

Creating an admin user

python manage.py createsuperuser Then follow the prompt

Accessing the admin panel

Access http://{your_host}:8000/admin

User your superuser account to login


Necessary configuration

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.3%
  • Dockerfile 1.7%