A progressive Node.js framework for building efficient and scalable server-side applications.
Brew App provides a bunch of API's for book management. Project is live at -
https://blushing-tick-bracelet.cyclic.app/
Book Schema -
{
_id: Mongoose Object Id,
title: string,
author: string,
summary: string
}
This API will post new book to the db
endpoint - {{baseUrl}}/book
request body example -
{
"title": "Train to Busan",
"author": "Mary Jane",
"summary": "horror book"
}
Please Note unique ID is auto-generated by MongoDB, we don't provide it explicitly in the request body.
This API will retrieve all the books in the database
endpoint - {{baseUrl}}/book
request body example - NA
This API will retrieve the book with the given id in the database
endpoint - {{baseUrl}}/book/{id}
request body example - NA
This API will update the book with the given ID in the database
endpoint - {{baseUrl}}/book/{id}
request body example -
{
"title": "Train to Busan",
"author": "Mary Jane",
"summary": "horror book"
}
This API will delete the book with the given ID from the database
endpoint - {{baseUrl}}/book/{id}
request body example - NA
Clone the repository in your local machine.
run npm install
You will need to provide MONGODB_URI in env.development file to connect with MongoDB instance.
Please ping me for same.
npm run start