{"id":16543309,"url":"https://github.com/codemation/restaurant","last_synced_at":"2025-03-04T07:14:12.552Z","repository":{"id":39831381,"uuid":"304447255","full_name":"codemation/restaurant","owner":"codemation","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-26T21:59:39.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T11:16:48.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-15T21:01:40.000Z","updated_at":"2022-06-25T04:41:08.000Z","dependencies_parsed_at":"2022-09-14T19:01:43.694Z","dependency_job_id":null,"html_url":"https://github.com/codemation/restaurant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemation%2Frestaurant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemation%2Frestaurant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemation%2Frestaurant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemation%2Frestaurant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemation","download_url":"https://codeload.github.com/codemation/restaurant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801257,"owners_count":20022390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:59:53.420Z","updated_at":"2025-03-04T07:14:12.522Z","avatar_url":"https://github.com/codemation.png","language":"Python","readme":"# restaurant\n\nRestaurant Simulator\n\n## Instructions - Getting Started \nDeploy a Restaurant Simulator instance\n\nRequired Env Vars:\n- WS_PATH: Example '/ws/game1' \n    this is the path that uvicorn will allow websocket negotion with client, and where client requests to restaurant server will take place.\n\n- MODE: Example 'mode1', 'game1'\n    Essentially a lable, as not tied to path, but prevents default testing WS_PATH from being used\n\nExample Start an Instance\n\n    $ docker run -d --name rest_sim -p 8390:8190 -e WS_PATH='/game1' -e MODE='game1' joshjamison/restaurant_simulator:latest\n\n\n### Deploy the instance\n\nExample:\n\n    $ git clone https://github.com/codemation/restaurant.git\n\n    $ cd restaurant;\n\n    (python37env)$ python test_restaurant.py 192.168.122.100 8390 /game1\n    ..\n    ....\n\n    test_run results: Score: 20 / 31\n\n## Stack\n- uvicorn - ASGI Server\n- FastAPI - Python Framework for quickly creating websocket / api endpoints\n- aiopyql - database ORM providing cache layer for database access and reducing / eliminating access to data when possibe. \n- sqlite - no network persistent database,  to satisfy the basic schema requiremnts, and storming required persistent data.\n\n\n## Scaling\nThe application can be scaled by simply creating new instances in front of a load-balancer(nginx). Databases will be stored in the ephemeral container storage as game data does not need to persist beyond runtime. ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemation%2Frestaurant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemation%2Frestaurant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemation%2Frestaurant/lists"}