All projects

Book Review API

Book Review API is an Express.js backend for an online bookshop. It exposes a public catalog for browsing books and protected endpoints that let registered customers write reviews.

  • Visitors can list the catalog and search it by ISBN, author, or title. Customers register, log in to receive a JWT stored in their session, and can then add, update, or delete their own review for any book.

  • Purpose

    • Practice designing and implementing a RESTful API with Express
    • Apply session-based authentication with JSON Web Tokens
    • Separate public and authenticated routes with middleware
    • Use async/await and Axios for request handling
  • Features

    • Public catalog listing with search by ISBN, author, and title
    • Customer registration and login
    • JWT access tokens stored in an Express session
    • Authentication middleware protecting every review route
    • Add, update, and delete a review per user and per book
  • Scope

    • Learning project with in-memory data: users and reviews reset when the server restarts
    • No database, automated test suite, or deployment configuration
    • Secrets are hard-coded and intended for local use only
  • Notes

    Built on an IBM Developer Skills Network course starter repository.