founders-programme-2 / business-launchpad

An app to facilitate young entrepreneurs in growing their business ventures.
1 stars 1 forks source link

Goals - add, delete #127

Closed Oliversw closed 5 years ago

Oliversw commented 5 years ago

Backend route and database query for all goals from the logged in user. Saves in context and populates the journal page with the returned goals. This means that @SalwaMugh, you should be able to populate the dashboard goals with items from context.state.goalData 🙂

Also uses the same route inside the function to add goals, so that whenever we add a new one, an updated list of goals is returned and rendered on the page

Also deletes goals, and returns updated list of goals in order to update journal page.

Bugs/todo later:

I've just been building on the previous PRs that I've been making, so this is getting kind of big! Feel free to ask any questions that you might have!!