Skip to content

jacky8hyf/CombatingSnakeChatBackend

Repository files navigation

Combating Snake Chat Backend

This Flask application is aimed to provide websocket backend for the CombatingSnake project.

Set it up

  1. Clone the repository
  2. virtualenv venv
  3. source venv/bin/activate
  4. [sudo] pip install -r requirements.txt

Run it locally

Link

Test it

Many of the tests are highly dependent on the Django app; so you need to have that app running on a different process.

  1. Clone the Django app
  2. In the root of that app, run: [PORT=8080] heroku local; you need to specify the port manually if it is not 8080 by default. If you don't want it to run on port 8080, you need to specify the REST_HOST environment variable below.
  3. Clone this repository.
  4. In the root of this app, run [REST_HOST=http://localhost:8080] python -m unittest discover.
  5. (Temporary) Expect the test testNoMasterKey to fail; we bypassed some security checks for iteration 2.

Below is the original README for the Python Websockets example. The original repository is here.

Python Websockets Example: Chat

This is a simple application that serves tasty WebSockets to your users with Flask, Flask-Sockets, Gevent, and Gunicorn.

Mmmm.

Check out the live demo or read the docs.

About

The websocket backend for the Combating Snake project.

ws://combating-snake-chat-backend.herokuapp.com

Resources

Stars

Watchers

Forks

Packages

No packages published