API that will be consumed on front-end and back-end
- Start the project (Creating a json package)
npm init -y
- Install the dependencies that will be used
npm i express body-parser colors nodemon
- Create API Access Route
- Serve API
- Enable CORS
Responsible for api access control
- Enable nodemon to restart the server
- Consume API created through fetch api
- Use try/catch
- Show result on screen
- Use jsonplaceholder
- Use axios
- Use try/catch