A simple REST API in Node.js
API Endpoints
| Methods | Urls | Description |
|---|---|---|
| GET | /titles | Get all titles |
| GET | /titles/:id | Get a specific title |
| POST | /titles | Create a new title |
| PUT | /titles/:id | Update an existing title |
| DELETE | /titles/:id | Delete an existing title |
Deployed server in Heroku (Unfortunately heroku dynos and postgres will become paid from November 28)
- Url to use for endpoints instead of localhost
https://thawing-caverns-10070.herokuapp.com
Clone the repo.
cd express-apiInstall the dependencies.
npm installTo start the express server, run the following.
npm run dev