WELCOME TO Books-Express
TABLE OF CONTENT;
- DESCRIPTION
- PROJECT SETUP
- AVAILABLE FUNCTIONALITY
- TESTS
- PROJECT DEMO
📄 DESCRIPTION;
This is a simple online books management app.. The main focus of this build in its present is the implementation of the banckend of the Books application using Express.
PROJECT SETUP
-
Clone the Repository
https://github.com/ekumamait/Books.git
-
Navigate to the application directory
cd Books
-
install all dependencies
npm i
-
Run the application
npm start
AVAILABLE FUNCTIONALITY;
URL | Methods | Functionality |
---|---|---|
/api/auth/signup | POST | signs up a user |
/api/auth/login | POST | Logs in a user |
/api/auth/book/ | POST | Create a new book entry |
/api/auth/books/ | GET | Displays all books |
/api/auth/book/:id | GET | Display a specific book |
/api/auth/book/:id | PUT | Update a specific book |
/api/auth/book/:id | DELETE | Delete a specific book |
🔬 TESTS;
-
Tests for controllers
-
Tests for models
-
Tests for middleware
-
command to run tests:
npm test
Project Demo;
Here is the link to the Demo: