larkinds / recurse-randomice

A webstore for a hypothetical ice cream store that combines adjectives and nouns for silly flavors
MIT License
4 stars 2 forks source link

automatic hall of fame population #75

Closed jgesel closed 1 year ago

jgesel commented 1 year ago

this PR automatically populates the HoF page. It does so by aggregating the OrderItems table, grouping by IceCreamID and summing quantities and then getting IceCream info foe each ID and returning the info for the 100 best selling flavors. This probably could all be done in one in mongoose statement but it was giving me some trouble so..... It also adds dependencies CORs dependencies as in this PR (https://github.com/larkinds/recurse-randomice/pull/70) Solves #60