Single page web application that implements solution of Dining Philosophers Problem (with a slight change) and illustrates course of the dinner.
This time our philosophers are reading while eating. Dinner ends when everybody read all of the books. Each philospher chooses a book he hadn't already read, next takes a seat and than tries to get forks. All choices are random. Waiter watches over the dinner and allows max four people to the table at the time.
- Django
- Django Channels
- WebSocket
1. Clone repository.
git clone https://github.com/bartekbednarz013/Philosophers-dinner.git
2. Install dependencies.
pip install -r requirements.txt
3. Go to settings.py and replace environment variable with your SECRET_KEY.
4. Run server.
python manage.py runserver
5. Open http://127.0.0.1:5000/
in your browser.