- Clone this repo locally.
$ git clone https://github.com/dakshshah96/blog-api-express.git
- Go to the new directory and install dependencies.
$ cd blog-api-express
$ npm install
- Run app from the command line.
$ node server.js
- Use an application like Postman to send requests to the appropriate API endpoint:
- GET and POST requests should go to
/blog-posts
- DELETE and PUT requests should go to
/blog-posts/:id