Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.59 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.59 KB

Philosophers dinner

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.

Tech Stack

  • Django
  • Django Channels
  • WebSocket

Screenshots

Initial page

Before dinner begins

During dinner

After dinner ends

Get started

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.