Skip to content

Navaneeth-21/expressBookReviews

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book Review Application - Backend

This project is a simple Bookshop API built with Express.js. It allows users to register, login, view books, and add or delete reviews for books.

Project Structure

Installation

  1. Clone the repository:
    git clone <repository-url>
  2. Navigate to the project directory:
    cd final_project
  3. Install the dependencies:
    npm install

Running the Project

To start the server, run:

npm start

The server will start on port 5000.

API EndPoints

Public Endpoints

  • POST /register : Register a new user.
  • GET / : Get the list of all books.
  • GET /isbn/:isbn : Get book details based on ISBN.
  • GET /author/:author : Get book details based on author.
  • GET /title/:title : Get book details based on title.
  • GET /review/:isbn : Get reviews for a book based on ISBN.

Authenticated Endpoints

  • POST /customer/login : Login a registered user.
  • PUT /customer/auth/review/:isbn : Add or modify a book review.
  • DELETE /customer/auth/review/:isbn : Delete a book review.

Authentication

The project uses JWT for authentication. Users need to login to access the authenticated endpoints.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%