Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olizilla/makelunch
Whose cooking?
https://github.com/olizilla/makelunch
Last synced: 9 days ago
JSON representation
Whose cooking?
- Host: GitHub
- URL: https://github.com/olizilla/makelunch
- Owner: olizilla
- Created: 2014-02-09T12:54:14.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-13T12:36:58.000Z (about 10 years ago)
- Last Synced: 2024-12-14T05:10:23.809Z (21 days ago)
- Language: JavaScript
- Size: 939 KB
- Stars: 6
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Make Lunch!
===========Help figure out whose cooking next by recording stats on how many servings you've made vs how many you've received.
If I cook for 8 people (including me), I recieve 1 portion and give 8, so am +7
Meals are historical records. The stats on the Eaters are calculated on meal insert. It's an experiment in document storage style.
To recommend who cooks next we look at how has the lowest value of `servings.given` - `servings.recieved`.
**TODO:**
- In the event of a tie, who cooked longest ago. (could also factor in meals eaten vs cooked)
- User auth
- Edit data / correct mistakes
- Whizzbang visulisationsRoutes
------`/` = stats & recommendations
`/addmeal` = create new meal data
`/addperson` = create new peopleCollections
-----------**Meals**
```
{
date: isoDate
chef: [userId]
eaters: [userId]
guests: Integer
dish: String
}
```**Eaters**
```
{
name: String,
img: url,
servings: {
given: Integer,
received: Integer
}
mealsCooked: Interger,
lastCooked: isoDate,
lastEaten: isoDate
}
```Initial data
------------- 2014-02-10, Hammick cooked leaky pasta for Elliot, Evans, Robinson, Wooding + 1 guest
- 2014-02-11, Wooding cooked baked potatoes for Elliot, Evans, Hammick, Shaw + 1 guest
- 2014-02-12, Shaw Bacon pasta cooked for Elliot, Hammick, Robinson, Wooding + 1 guest
- 2014-02-13, Evans cooked Onion, Bean & Pancetta Stew for Shaw, Wooding, Elliot, Hammick, Heatherington + 1 guest
- 2014-02-14, Elliot and Heatherington cooked Fish pie for Shaw, Wooding, Elliot, Hammick, Evans, Robinson