GoStack is an 8-week Bootcamp from RocketSeat that is mainly focused on teaching NodeJS, ReactJS, React-Native and Typescript
- Challenge description: https://git.io/JJA0c
- Test Results on
Jest_Results.png
-
List every food on the
Dashboard
page, each food should contain the fieldstitle
,value
,description
andavailable
- To the
available
field, it should check theavailable
field from the API and returnDisponível
if it's true andIndisponível
if it's false
- To the
-
Add new
food
to the API, on theDashboard
page the+
button should allow the user to create a newfood
passing the fieldsimage
,name
,description
andvalue
-
image
field must be an URL - When sending the request to the API to create a new
food
always remember to set the fieldavailable
to true
-
-
Edit
food
, on theDashboard
page when the button✏️
gets clicked, it should allow the user to editimage
,name
,description
andvalue
of a given food- When sending the update request to the API, copy the old values of
available
andid
or the data will be lost
- When sending the update request to the API, copy the old values of
-
Remove
food
from the API, on theDashboard
page if the trash button gets clicked thefood
should be removed from the API- After removing the item from the API remember to remove it from the list
-
Alter the available atribute of
food
from the API, on theDashboard
page, after clicking theavailable
switch, it should alter theavailable
atribute item from the API