System for receiving and sending data to the Pi remotely.
- Clone this repository
- Open a terminal, and navigate inside the repository
- Follow a tutorial (like this one) on how to set up virtualenv. Remember to use Python 3.4.
- Active the virtualenv. Assuming you named the folder venv, run
source venv/bin/activate
- Run
pip install -r requirements.txt
- Run
python manage.py makemigrations api
- Run
python manage.py migrate
- Run
python manage.py createsuperuser
, and follow the prompts to create a local user for the system.
You can make the server delete messages when they are sent by setting DELETE_FETCHED_MESSAGES
to True in carapi/settings.py
.
Run python manage.py runserver 34446
to run a server appropiate for development use.
- With the server and PI (see PI/readme) up and running, navigate to
http://localhost:34446/
to see a deployed version of this in action. - To see what messages that can be stored, navigate to
http://localhost:34446/admin
and log in with the user and password you created.
See https://github.com/BoreasCarSystem/PI/blob/master/Protocols.md