DicoDigital API dicodigital-api on Travis

API for https://lite6.framapad.org/p/dicodigital

Build with Django and Django-rest-framework

One click deploy !!

Deploy

Requirements

  • Python 3
  • Virtualenv

API Documentation

Django REST Swagger was installed and is accessible directly from your app to /docs/

Development

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:

dj-database-url

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