This repository contains an Express.js application for managing book reviews through a RESTful API.
- Browse books by ISBN, author, or title
- Read book reviews
- User registration and authentication
- Add/modify/delete book reviews (for authenticated users)
- Implementation with both synchronous and async/promise-based approaches
Visit our API Documentation for complete details about the available endpoints and how to use them.
- Clone this repository
- Navigate to the project directory:
cd expressBookReviews/final_project - Install dependencies:
npm install - Start the server:
node index.js - The API will be available at
http://localhost:5000
GET /: Get all booksGET /isbn/:isbn: Get book by ISBNGET /author/:author: Get books by authorGET /title/:title: Get books by titleGET /review/:isbn: Get book reviews
POST /register: Register a new userPOST /customer/login: Login as a registered user
PUT /customer/auth/review/:isbn: Add/update a book reviewDELETE /customer/auth/review/:isbn: Delete a book review
GET /async/books: Get all books (async)GET /async/isbn/:isbn: Get book by ISBN (async)GET /async/author/:author: Get books by author (promise)GET /async/title/:title: Get books by title (promise)