This is a Book Directory API built with Nodejs + express js
- install Nodejs version v18.16.1
-
clone the repository
git clone <https://github.com/HilaryEmmanuel/BookDirectory-Api.git>
-
Install dependencies
cd <BookDirectory-Api>
npm install
-
Build and run the project
npm start
- SignUp
- Login
- Logout
- session based Authentication
- Add a Book
- Get all Books
- Get a Book
- Update a Book
- Delete a Book
- all Endpoints are tested
- Express js - the core of the API
- Postgresql - the Relational database mangement system used
- pg-promise - the database driver for postgresql
- supertest & mocha - for testing
- pg-session - the session store
- passportjs - the Authentication middleware