/GameOfLife

A simple WebSocket-based Game of Life build with Django Channels and React

Primary LanguagePythonMIT LicenseMIT

Game of Life

A simple WebSocket-based Game of Life build with django-channels and React for exploration or educational purposes.

preview

How to run it locally

You need the following requirements installed on your machine:

Docker wraps all the backend: Python, Django, Redis.

NodeJS serve the frontend through webpack. I personally use nvm with a Node 6.

Run backend

# Build and run two docker containers: Redis & the django app
make run-backend

The backend will be available at http://localhost:8000.

Run frontend

npm install       # Install node dependencies
make run-frontend # Serve the web app

The frontend will be available at http://localhost:8080.

Extras

Redux Devtools

You can use the Redux Devtools on this app.

Life fixtures

Different fixtures are available in src/backend/life/game/fixtures.py.

You can change the default Board parameter (replace eyes by generator or fleet).

License

This piece of code is licensed under MIT License.