Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 926 Bytes

README.md

File metadata and controls

52 lines (37 loc) · 926 Bytes

auv-control-api

This is main API code for managing AUV's, planning trips, logging data.

Development

With Docker

$ docker-compose build
$ docker-compose run web python manage.py migrate
$ docker-compose run web python manage.py createsuperuser
$ docker-compose up

Without Docker

Install Dependencies

$ pip install -r requirements.tx

Setup enviornment variables

$ export DEBUG=True
$ export DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/NAME`
$ export SECRET_KEY=somethingsecret

For other database backends see: https://github.com/kennethreitz/dj-database-url

Run migrations

$ python manage.py migrate

Create Superuser

$ python manage.py createsuperuser

Run Development Server

$ python manage.py runserver

Create AUV

Go to localhost:8000/admin and create an AUV for testing with the Frontend.