Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.13 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.13 KB

brightidsocial

A backend service to help BrightID users find their friends

Local Development

(It's better to use a virtual env)

# install the dependencies
pip install -r requirements.txt

# run migrations and setup database
python manage.py migrate

# run the project
python manage.py runserver

Also, read the load initial data section

Production

Use guides like this one to setup this Django project on your server. You can rename secret-sample.py to secret.py to add your production configurations

Load Initial Data

after running migrations, you can load initial social media variations to database

# running python shell for Django
python manage.py shell

from initial_data.initial_social_media import *
    upsert_initial_social_media_variations()

Admin Panel

use this guide

Docs

after runnning the command python manage.py runserver you can go to http://127.0.0.1:8000/api/docs/swagger/ to see the api documentation