ASGI Django Server to play Chess in real-time using Django Channels and Redis.
Video Link : https://youtu.be/1vTLLf82KwE
Master branch is for developement Django server to be run on local system (Windows). Follow these steps to use:
- Install all the dependencies by running
pipenv install
(install pipenv first) - Ensure you have Redis running on
port #6379
for it to work correctly. This can be achieved using Docker (on Windows) by running the commanddocker run -p 6379:6379 -d redis:5
- Finally run server using
python manage.py runserver
Prod branch was made keeping in mind the end result of deployment on Heroku using the free-tier. You can view the version that I have deployed here. Follow these steps to deploy:
- Clone this branch and create a new application on Heroku
- Add the Heroku Redis addon to the application (free-tier available)
- Link the cloned repo to your application and deploy
https://github.com/mustankap/KJSCE-Hack
- Custom Admin dashboard
- Create Game
- Join Game
- View Public games
- Single player
- Dashboard of past games and log
- Add friend
- Responsive, mobile-friendly design
- Forgot password
- User registration
- Much more...
1. Clone Repository & Install Packages
git clone
pip install -r requirements.txt
2. Setup Environment
python -m venv venv
source venv/bin/activate
OR on Windows
python -m venv venv
activate.bat
3. Migrate & Start Server
python manage.py makemigrations
python manage.py migrate
python manage.py runserver