Book Application
A Simple Book RestAPI
[Technologies · Testing Tools · Installations · API Endpoints · Tests · Author
- You need to have Node and NPM installed on your computer.
- Installing Node automatically comes with npm.
- Clone this project to your local machine
[email protected]:victorsteven/Book-app-NodeJS-PostgreSQL-Travis-Coveralls-Code-Climate.git
- Installing the project dependencies
Run the command below
$ npm install
- Start your node server
run the command below
$ npm run dev
- Use
http://localhost:8000
as base url for endpoints
METHOD | DESCRIPTION | ENDPOINTS |
---|---|---|
POST | Add a book | /api/v1/books |
GET | Get all the book | /api/v1/books |
PUT | Update the details of a book | /api/v1/books/:bookId |
GET | Get a book particular book | /api/v1/books/:bookId |
DELETE | Remove a book | /api/v1/books/:bookId |
- Run test for all endpoints
run the command below
$ npm run test
- Steven Victor
medium: medium.com/@victorsteven
twitter: twitter.com/stevensunflash
linkedin: linkedin.com/in/stevenchikodi