Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scilifelabdatacentre/lunch-menu
Menu parser for the restaurants near SciLifeLab in Solna and Uppsala
https://github.com/scilifelabdatacentre/lunch-menu
backend flask frontend parser python quasar vue
Last synced: 10 days ago
JSON representation
Menu parser for the restaurants near SciLifeLab in Solna and Uppsala
- Host: GitHub
- URL: https://github.com/scilifelabdatacentre/lunch-menu
- Owner: ScilifelabDataCentre
- License: bsd-3-clause
- Created: 2014-10-06T10:39:14.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2023-10-20T07:49:24.000Z (over 1 year ago)
- Last Synced: 2023-10-20T15:03:00.230Z (over 1 year ago)
- Topics: backend, flask, frontend, parser, python, quasar, vue
- Language: Python
- Homepage: https://lunchmenus.scilifelab.se/
- Size: 1.3 MB
- Stars: 16
- Watchers: 8
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lunch Menu Aggregator
=====================This is the code for a web page listing the menus of the restaurants near SciLifeLab Solna (KI) and Uppsala (BMC).
The first code was written in 2010 by [@talavis](https://github.com/talavis), who is still the main developer. There are also multiple contributors of e.g. bugfixes and new parsers.
There are three parts:
* A parser that can be imported in Python. It uses Requests and BeautifulSoup to download and parse the restaurant web pages.
* A backend that makes the menus available via an API built on top of Flask.
* A frontend that presents the menus in a more readable format (by making requests to the backend). It is written in Quasar (Vue).## Development
Run `docker-compose up`.
### Add a new restaurant
To add a new restaurant:
1. Add the parser function to `parser.py`
2. Add the relevant keyword and function name to `MAPPER` in `main.py`
3. Add information about the restaurant to `restaurants.json`## Supported endpoints in the flask application:
- `/restaurant` (json): List all supported restaurants
- `/restaurant/` (json): Retrieve menu for a restaurant (identifier can be obtained from the above request).## Hosted versions:
- [Backend](https://menu.dckube.scilifelab.se/api)
- [Frontend](https://menu.dckube.scilifelab.se/)## Feedback
Bugs and requests for new restaurants or features should be submitted as issues to Github.