Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrienemery/auv-control-api
API for AUV database backend
https://github.com/adrienemery/auv-control-api
Last synced: 9 days ago
JSON representation
API for AUV database backend
- Host: GitHub
- URL: https://github.com/adrienemery/auv-control-api
- Owner: adrienemery
- License: mit
- Created: 2016-08-01T03:49:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-26T16:19:20.000Z (over 6 years ago)
- Last Synced: 2024-11-08T12:44:40.428Z (2 months ago)
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auv-control-api
This is main API code for managing AUV's, planning trips, logging data.
## Development
### With Docker
```bash
$ 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
```bash
$ pip install -r requirements.tx
```#### Setup enviornment variables
```bash
$ 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
```bash
$ python manage.py migrate
```#### Create Superuser
```bash
$ python manage.py createsuperuser
```#### Run Development Server
```bash
$ python manage.py runserver
```#### Create AUV
Go to `localhost:8000/admin` and create an AUV for testing with the Frontend.