SINC backend.
- Python 3.4 or above.
- PostgreSQL 9.5.4 or above. (SINC will use Postgres in production and has
psycopg2
in its dependencies, although you're free to use SQLite in development.)
- Clone this repo:
git clone https://github.com/sdob/sincserver.git && cd sincserver
- Install dependencies:
pip install -r requirements.txt
(preferably in a virtualenv). - Create your database.
- Rename
env.example
to.env
and edit the values of theSECRET_KEY
andDATABASE_URL
environment variables. - Apply the database migrations:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
This will prompt you for a username (type in anything you want here; SINC uses the db's primary key as the username), an email address, and first and last names. - (Optional) Run the tests:
python manage.py test
- Run the development server:
python manage.py runserver
This will start the dev server running on http://localhost:8000/.