Skip to content

adrienemery/auv-control-api

Repository files navigation

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.

About

API for AUV database backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published