Book Directory is a REST API created with Node.js that allows you to fetch all the books from the directory, add books to the directory, delete books from the directory.
- Node.js
- Express
To get a local copy up and running follow these simple example steps.
run on your console git clone https://github.com/petudeveloper/book-directory.git
- Install project packages
npm install
ornpm i
- To start a local server
npm start
- Access
http://localhost:3000/
in your browser
- GET
/api/books
to see all the books on the directory. - GET
/api/books/:id
to see a specific book from the directory by its id. - DELETE
/api/books/:id
to remove a specific book from the directory by its id. - POST
/api/books
to add a new book to the directory NOTE: You need to pass a body with a title and author. Content-Type: application/json.
👤 David Alvarez
- GitHub: @petudeveloper
- Twitter: @petudeveloper
- LinkedIn: davidalvarezmazzo
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used
- Inspiration
- etc
This project is MIT licensed.