API made with Django used to retrieve some informations stored by the surirobot. The informations include data like sensors, identifications, various logs, and pictures. Currently made to be a POC. The function of this repository may change in the future.
- Python3
- Virtualenvwrapper
pip install virtualenvwrapper
- If you have some trouble with the command
workon
see : https://stackoverflow.com/questions/29900090/virtualenv-workon-doesnt-work
docker build . -t api-memory
docker run --env-file .env -p 8000:8000 api-memory
- Clone repository
- Create virtualenv
mkvirtualenv api-memory && workon api-memory
- Install dependencies
pip install -r requirements.txt
- Configure .env
cp .env.example .env
If you want to use the default environment
- Fill only the
REMOTE_DATA_LOGIN
andREMOTE_DATA_PASSWD
fields - Run the command :
tools/get-env
- Run the dev server
cd api
python manage.py runserver