Bookshelf API is a simple RESTful API developed using the hapi framework on node.js. This API allows CRUD (Create, Read, Update, Delete) operations which are basic related to bookshelf data.
- node.js installed on your machine download
- npm (Node Package Manager) installed see
- Any code editor of your choice (e.g., Visual Studio Code)
-
Clone this repository to your local machine:
git clone https://github.com/leuthra/bookshelf.git
-
Navigate to the project directory:
cd bookshelf
-
Install dependencies:
npm install
-
Run the application:
npm start
The API will be accessible at http://localhost:3000.
GET /books
: Get all books.GET /books/{bookId}
: Get a specific book by ID.POST /books
: Add a new book.PUT /books/{bookId}
: Update a book by ID.DELETE /books/{bookId}
: Delete a book by ID.