A Django based implementation of popular Tic Tac Toe Game. Uses Django Channels, Websockets and redis to connect to the other player.
- Simplistic creation of room code.
- Real-time updates.
See the requirements.txt file
- Git Clone this project:
- Create an python environment with
python -m venv venv
orvirtualenv venv
and activate it with (windows:venv\Scripts\activate
, Mac/Linux:source venv/bin/activate
. - Install required packages:
pip install -r requirements.txt
- Create superuser
- Run app:
python manage.py runserver
- Then go to http://127.0.0.1:8000/home in your browser
Bonus - Publish it on Heroku.
https://codeburst.io/deploy-your-django-project-for-free-140d73a2c76b
The free tier of Heroku sleeps after 30 minutes of inactivity. Use Kaffiene (http://kaffeine.herokuapp.com/) to keep it awake.
Deployment error fix over https. The project deploys but isn't able to connect over a secure connection and since Heroku uses https, the web socket fails to establish connection. [Possible fix could be using daphne].
Due credit to people who have worked on different components of the project beforehand. Gaurav