pohutukawa-2022 / gardenz

Empowering community gardens in New Zealand
0 stars 0 forks source link

37 create shop database #55

Closed Luke-vanKan closed 2 years ago

Luke-vanKan commented 2 years ago

Definition of Done

For every submission to the codebase, check that it meets the DoD below.

https://github.com/pohutukawa-2022/gardenz/issues/37

Created two database tables called 'garden_shop' and 'shop_products' and seeded them . Created db function to join the two tables and return the products for a certain garden given the id. Also created route at '/api/v1/shop/:id'. Made tests for both the db function and routes, just run 'npx jest shop' to see them.

Luke-vanKan commented 2 years ago

Have fixed requested changes.