This is the Combating Snake repo!
Visit the Combating Snake website to try it out!
- Clone the repository
virtualenv venv
source venv/bin/activate
[sudo] pip install -r requirements.txt
- Under the root of this repository, run
[CHAT_BACKEND_BASE_URL="ws://localhost:8081"] [PORT=8080] heroku local
- The stuff in brackets are optional. But don't type the brackets themselves even if you add these options.
CHAT_BACKEND_BASE_URL
indicates which WebSocket server should the client JavaScript code connect toPORT
indicates on which port should this Django app run on.
- Clone the chat backend repository.
- Under the root of the chat backend repository, run
[REST_HOST="http://localhost:8080"] PORT=8081 heroku local
- The stuff in brackets are optional. But don't type the brackets themselves even if you add these options.
REST_HOST
indicates which RESTful API server should this app connect toPORT
indicates on which port should this Flask app run on.
- When you run these apps, make sure the port matches.
- Open
http://localhost:8080
(for example) to see.
After setting up the repository, simply python manage.py test
!
This will run tests on the Django app (a.k.a. this repository). Some of the views
are tested in the Flask app.