Express Book Review App

Hira Saleem

Express Book Review App

The Express Book Review App is a web application that allows users to browse, review, and rate books. Built using Express.js, this application provides an intuitive platform for book lovers to share their thoughts and discover new books.

Features

User Authentication – Register and log in to post reviews.
Book Listing – View a collection of books with details.
Review & Ratings – Users can write reviews and rate books.
REST API – Well-structured API endpoints for data management.
Responsive UI – Optimized for both desktop and mobile devices.

Technologies Used

Express.js – Backend framework for handling API requests.
MongoDB – Database for storing book and user data.
Mongoose – ODM for MongoDB interactions.
Node.js – JavaScript runtime environment.
JWT Authentication – Secure user authentication.
Bootstrap/CSS – Frontend styling for a user-friendly interface.

Project Structure

Express-Book-Review-App/
├── models/ # Database models
├── routes/ # API routes
├── views/ # Frontend templates
├── public/ # Static assets (CSS, JS, images)
├── app.js # Main server file
├── config/ # Configuration files (DB, authentication)
├── package.json # Project dependencies
├── README.md # Project documentation

Getting Started

Follow these steps to set up the project locally:

1. Clone the Repository

git clone https://github.com/HSk2703/Express-Book-Review-App.git
cd Express-Book-Review-App

2. Install Dependencies

npm install

3. Set Up Environment Variables

Create a .env file in the root directory and configure the necessary environment variables:
PORT=5000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key

4. Start the Server

npm start

5. Access the Application

Open your browser and navigate to:

API Endpoints

Method Endpoint Description GET /books Get all books POST /books Add a new book GET /books/:id Get details of a book POST /reviews/:bookId Add a review for a book GET /reviews/:bookId Get reviews for a book.

Like this project
0

Posted Aug 14, 2024

Express Book Review App lets users browse, review, and rate books, offering an intuitive platform for book lovers to share insights and discover new reads.

Backend App using Node.js, Express, MongoDB, and JWT
Backend App using Node.js, Express, MongoDB, and JWT
AI-Powered Chatbot
AI-Powered Chatbot
Django-Car-Dealership-App
Django-Car-Dealership-App
Shopify-Powered Women's Fashion E-commerce Store
Shopify-Powered Women's Fashion E-commerce Store