/Book-Store-API

Book Store API built using NodeJS & Express & MongoDB

Primary LanguageJavaScript


Logo

Node.js Book Store API

Book Store API built using NodeJS & Express & MongoDB

Table of Contents

Description

A RESTful API for building a Book Store API application. This API provides the backend functionality required for managing Books, users, authors.

Also, You need to read the API Documentation.

Features

  • User authentication and authorization using Json web token.
  • Users management (create, read, update, delete).
  • Books management (create, read, update, delete).
  • Authors management (create, read, update, delete).
  • Pagination
  • Search filtering using price

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • JWT
  • bcrypt
  • Express-Async-Handler

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Download and install Nodejs
  • Download and install MongoDB Compass
  • A web browser (e.g. Google Chrome, Mozilla Firefox, Microsoft Edge)
  • A text editor (e.g. Visual Studio Code, Sublime Text)
  • A platform for testing APIs like Postman

Installation

  1. Clone the repository to your local machine:
https://github.com/Diab16/Book-Store-API.git
  1. Install required packages npm install
  2. Configure the environment variables, such as the database URL.
  3. npm run build then npm run start or use npm run dev.