Skip to content

REST API that allows you to fetch all the books, add a new book, updates any existing book and delete any existing book from the directory. Build with Node.js

Notifications You must be signed in to change notification settings

petudeveloper/book-directory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Directory

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.

Built With

  • Node.js
  • Express

Live Demo

Live Demo Link

Getting Started

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

  • Install project packages npm install or npm i

Usage

  • To start a local server npm start
  • Access http://localhost:3000/ in your browser

Endpoints

  • 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.

Authors

👤 David Alvarez

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

REST API that allows you to fetch all the books, add a new book, updates any existing book and delete any existing book from the directory. Build with Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published