This API is created to exchange data with our web page
npm installto install dependencies.npm startornode bin/wwwto start the server.git pullto pull newest changed from the repositorys.PORT=9000 npm startto start on port 9000 (change the number to use another port).
By default the sever is set to run on port 3001
To create a route
- create a file at /routes/filename.js
requireit at /app.jsapp.use()it at /app.js- create responses at /routes/filename.js
Great!! We have a new route!
GETtypical request from a browser.POSTis used to update data.PUTis used to create dataDELETEis used to remove data.