Skip to content

rohanchauhan/ebook-api

Repository files navigation

ebook-api

REST API Backend in Node.js for E-library

Deployed on:

base url: https://classique-mandarine-10882.herokuapp.com/

Feel free to test it using Postman: Try GET on https://classique-mandarine-10882.herokuapp.com/v1/api/books

Features:

  • APIs using Express
  • Validation using Mongoose and Joi
  • Logging using Winston
  • Unit and Integration test using Jest
  • Persistence using MongoDB and Transaction using Fawn
  • Authentication with hashed passwords and Authorization using JWT
  • Configuration using config

APIs:

Structure

  • config - configuration for different environments
  • middleware - middlewares for authentication, authorization, validation and error handling
  • models - model for books, categories, customers, rentals and users
  • routes - routes for apis listed above
  • startup - used to load configuration, validation and routes, connect Db, enable logging and error handling
  • tests - contains unit tests and integration tests
  • combined.log - For logging info, warnings and error
  • index.js -main file
  • package.json - for installing dependencies

Installation

  1. Given that you have Node.js installed, download the repository.
  2. Using terminal, go inside ebooks-api using cd ebooks-api command.
  3. Run npm install

About

REST API in Node.js for E-library

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published