A webapp + REST api for controlling your Anki Vector robot friend.
REST api's are awesome and let a lot more people have access to their vector's from many more languages. This project is meant to provide two things:
- A REST api that mirrors the vector Python API as closely as possible
- A webapp frontend for controlling the vector remotely
This application uses swagger-ui to generate beautiful interactive REST api documentation. Just go to http://localhost:5000/docs to test out API calls on your vector (while running the application, of course).
-
Set up your vector py -m anki_vector.configure
and follow instructions to set up your vector -
build and run the server:
$ docker-compose build && docker-compose up -
Access via browser http://localhost:5000/docs and you are good to go :)
-
use pip to install the requirements of the server:
$ pip install -r requirements.txt
I highly recommend to use a virtual env to avoid dependency conflicts. -
install front end dependencies:
$ cd static
$ npm install
$ cd .. -
build the front end:
$ npm run build
You can use 'npm run watch' to avoid building the front end everytime a change is made. -
Set up your vector py -m anki_vector.configure
and follow instructions to set up your vector -
run the server:
$ uwsgi uwsgi.ini -
Access via browser http://localhost:5000/docs and you are good to go :)
- Falcon
- ReactJS
- webpack
- Docker
- Swagger UI
I currently use this website to build my API docs. If you would like to contribute to this project, I can share you in on it.