- Clone repository.
- Run
npm install
oryarn install
. - Run
npm run dev
oryarn run dev
. - Run
npm test
oryarn test
. - Serve
index.html
usinglive-server
or similar.
We need node
& npm
, as well as packages live-server
and eslint
installed globally. VSCode's eslint
extension is recommended. Command line commands are run inside the project folder. This guide uses npm but should work the same using yarn.
- Learn
promise.finally()
. - Learn
Promise.all()
. - Learn
POST
,PUT
,DELETE
. - Learn about preflight requests and
CORS
. - Learn to organize endpoints in
Postman
. - Learn
ref
s inReact
.
- Fix the
fetchPerson
request. - Show our
GET
in action in Chrome Devtools Network tab. - Show how to see different details of the request on the Network Tab.
- Teach
promise.finally()
and clean upsetPerson
andsetError
. - Teach
Promise.all()
and use it to fetch two people. - Implement
setPeople
so we concatenate the two people tothis.state.people
. - Show each new endpoint on
mockable.io
. - Make each new endpoint work on
Postman
. - Implement
postNewPerson
,putPerson
,deletePerson
. - Dry code.