Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryu1kn/suggest-dinner
Play with tools/languages
https://github.com/ryu1kn/suggest-dinner
Last synced: about 1 month ago
JSON representation
Play with tools/languages
- Host: GitHub
- URL: https://github.com/ryu1kn/suggest-dinner
- Owner: ryu1kn
- Created: 2017-09-12T14:21:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-30T12:57:47.000Z (about 7 years ago)
- Last Synced: 2024-10-09T13:52:58.328Z (about 1 month ago)
- Language: Java
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Suggest Dinner
Trying to make this as a not too small but not big coding exercise
that I can solve with many languages and experiment things.From the ingredients you have, suggest tonight's dinner
```sh
$ suggest-dinner --recipes recipes.yaml --stock stock.yaml
Beef steak
```* stock.yaml
```yaml
version: 1
ingredients:
- onion
- beef
- potato
```* recipes.yaml
```yaml
version: 1
recipes:
- name: Pot-au-feu
ingredients:
- onion
- leek
- pork
- name: Beef steak
ingredients:
- beef
```## Additional challenges
* Return not just one but all recipes that can be cooked
* Amount for ingredients (both stock and recipe)
* How many serves
* Ingredients can expire
* Each recipe has different difficulty
* Each recipe has different time to cook
* Read recipes and/or stock from different file formats (JSON, CSV, ...)
* Read recipes and/or stock from DB
* Make it a web service (provide API)
* Course menu: Entre, main, ...
* Food genre (Japanese, Thai, French, ...)
* Ingredients at hand, ingredients that can buy (with cost)
* Data migration (schema change)
* Provide a command if certain recipe can be cooked, if not, tell why