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.
- Host: GitHub
- URL: https://github.com/jorneycr/book-store-api
- Owner: jorneycr
- Created: 2021-09-02T01:51:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T05:21:04.000Z (over 3 years ago)
- Last Synced: 2025-10-22T15:30:47.503Z (8 months ago)
- Topics: api-rest, docker-compose, nestjs, postgresql, typescript
- Language: TypeScript
- Homepage:
- Size: 3.1 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```