An open API service indexing awesome lists of open source software.

https://github.com/jorneycr/book-store-api

API in NestJS with Docker.
https://github.com/jorneycr/book-store-api

api-rest docker-compose nestjs postgresql typescript

Last synced: about 2 months ago
JSON representation

API in NestJS with Docker.

Awesome Lists containing this project

README

          


Nest Logo

# BookStore API

## Installation

```bash
$ npm install
```

## Running the app

```bash
$ npm run start
```

## Docker

```bash
$ docker-compose up -d
```

## Migrations

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

```bash
$ npm run migration:run
```

## End-Points

```bash
$ 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
```