API for https://lite6.framapad.org/p/dicodigital
Build with Django and Django-rest-framework
- Python 3
- Virtualenv
Django REST Swagger was installed and is accessible directly from your app to /docs/
Get the project and install dependencies:
git clone https://github.com/harmo/dicodigital-api.git
cd dicodigital-api
virtualenv -p python3 .venv
source .venv/bin/activate
pip install -r requirements/dev.txt
Set environement variables:
export DJANGO_SETTINGS_MODULE=dicodigital.settings
export DATABASE_URL=sqlite:///$(pwd)/dicodigital.db
export DEBUG=True
Migrate the database:
./manage.py migrate
This step allow you to create a superadmin user:
./manage.py createsuperuser
Run the magic:
./manage.py runserver_plus