# URBAN HARVEST
----
<!--Jennifer-->
## Roles
Jennifer - Quality
Josh - Deployment
Trish - Design
Rihards - Scrum
----
## The Idea
Did you know there are bountiful cherry trees in Finbsury Park?
A RESTapi which allows users to request and submit data about freely available fruits, herbs or vegetables growing in urbanized areas (for example London).

----
<!--Rihards-->
### Blueprints
[file structure](https://whimsical.com/KzbtV8ApGyfSH2sDJn4TWs)
[loco 8's ](https://miro.com/app/board/o9J_kmuWsLA=/)
<!--Talk about agreeing API endpoints here-->
[schema](https://dbdiagram.io/d/5f465d9e7b2e2f40e9ded631)
----
#### Project board

----
### DEMO

----
## CODE Review
----
## Which learning objectives (curriculum or personal) we focused on and how that went

----
##### Personal Goals and what we achieved:
- Josh goal - I would like to get to grips with authentication and usage of tokens using JWT.
- Trish goal - I'd like to get a better handle on express, middleware, handlers, how they interact
Achieved: definitely less muddy on this than I was :tada: :nerd_face:
----
- Jennifer goal - set up Github Actions
Achieved: writing a test which sends in a user and finds it, coming up with new ways to check tests, remembering tiny things from workshops!
- Rihards - practice express, learn testing and CI
Achieved: understand testing and CI, async await, create models and handlers
----
## Pair Programming
#### Wednesday
1. {Josh : Rihards}, {Trish : Jennifer}
#### Thursday
2. {Josh : Trish}, {Jennifer : Rihards}
3. {Rihards : Trish}, {Jennifer : Josh}
- During pastoral-taks we mobbed. [3:30pm - 5:00pm]
4. {Rihards : Josh}, {Jennifer : Trish}
----
## Team Goals
### Wednesday
- By the end of the day to setup a server and a database.
### Thursday
- Frequent pair swap
- Practice insomnia
- Stretch and reset on time
- Efficient sprints (20:20:20)
- Create RESTapi
----
<!--Jennifer-->
## Challenges
- Github merge conflict
- Returning enough times from certain functions

----
## Little things we learned
- Had a few issues with filenames: don't capitalise them
- You can't send a response body with a 204 error!
- Handle errors in handlers rather than models
- don't push your .env file to github
- it's easier to make a flowchart in Whimsical than Miro
- Github actions test- just wait a bit! And if you get an error, wait and try again
----
## Next time:
- Test database & more tests!
- Stay chilled
----
## THANK YOU!
#### Q&A TIME!
----
{"metaMigratedAt":"2023-06-15T12:11:06.438Z","metaMigratedFrom":"Content","title":"URBAN HARVEST","breaks":true,"contributors":"[{\"id\":\"a92566bd-bde1-4917-8d3b-c43b71924ffd\",\"add\":810,\"del\":563},{\"id\":\"70e73067-10d2-4b79-a4af-53ace8d9813b\",\"add\":558,\"del\":105},{\"id\":\"aa21d932-e6a4-4af3-8f04-46828d89fd58\",\"add\":3082,\"del\":800}]"}