This is simple crud API for book using MERN
Get all the books
Create a new books
Get a specific book by id
DELETE : http://localhost:4000/api/books/:id
Delete a specific book by id
- Express
- mongoose
- mongodb
- nodemon
const url = "mongodb://localhost/BookAPI"
mongoose.connect(url)
const con = mongoose.connection
con.on('open' , ()=>{
console.log("Connected !")
})
Note : https://mongoosejs.com/