Skip to content

jorneycr/Book-Store-API

Repository files navigation

Nest Logo

BookStore API

Installation

$ npm install

Running the app

$ npm run start

Docker

$ docker-compose up -d

Migrations

$ npm run migration:generate migration-name
$ npm run migration:run 

End-Points

$ POST http://localhost:5000/api/auth/signup

$ POST http://localhost:5000/api/auth/signin

$ POST http://localhost:5000/api/users/setRole/5/3

$ GET http://localhost:5000/api/users

$ POST http://localhost:5000/api/roles

$ GET http://localhost:5000/api/roles

$ POST http://localhost:5000/api/book

$ GET http://localhost:5000/api/book

$ GET http://localhost:5000/api/book/author/5