- Use a client library from the browser to send HTTP requests to a local REST API
- Explain and use the Fetch API to consume data from an API and update the DOM
- Explain and apply the CRUD pattern in a simple frontend app
Fork and clone this repository to your local machine
$ git clone [email protected]:[username]/js-dom-pokemon-crud.git && cd js-dom-pokemon-crud
$ npm ci # to install dependencies
$ npx json-server db.json # run the local api
# serve your index.html and then navigate to it in your browser
We should be able to:
- Show all existing pokemon when the page loads
- Add a new pokemon
- Allow users to delete a pokemon
- Allow users to like a pokemon