https://github.com/caioagiani/biblioteca-nodejs-api
Sistema de reservas de livros para bibliotecas.
https://github.com/caioagiani/biblioteca-nodejs-api
api docker es6 mongodb nodejs swagger
Last synced: about 1 year ago
JSON representation
Sistema de reservas de livros para bibliotecas.
- Host: GitHub
- URL: https://github.com/caioagiani/biblioteca-nodejs-api
- Owner: caioagiani
- Created: 2021-03-14T00:31:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-19T08:39:23.000Z (over 1 year ago)
- Last Synced: 2025-03-23T11:42:07.553Z (over 1 year ago)
- Topics: api, docker, es6, mongodb, nodejs, swagger
- Language: JavaScript
- Homepage:
- Size: 394 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
API Biblioteca | Nodejs




Sistema de reservas para bibliotecas otimizarem o tempo entre Usuário & Livro.
**GET** `http://localhost:3333/docs`

Importe todas as rotas no seu [Insomnia](https://insomnia.rest/run/?label=biblioteca-nodejs-api&uri=https://raw.githubusercontent.com/caioagiani/biblioteca-nodejs-api/master/insomnia.json).
## Baixar projeto e instalar dependências:
```bash
$ git clone git@github.com:caioagiani/biblioteca-nodejs-api.git
$ cd biblioteca-nodejs-api
$ yarn install
```
## Configurar variáveis ambiente:
```bash
$ cp .env.example .env
```
## Iniciar padrão:
```bash
$ yarn dev
# Ou iniciar com docker 🐳
$ docker-compose up
```
## Testes
```bash
$ docker-compose run --rm api npm test
Starting db ... done
> nodejs@1.0.0 test /usr/src/app
> NODE_ENV=test jest --setupFiles dotenv/config --detectOpenHandles --forceExit
PASS __tests__/booking.test.js
PASS __tests__/book.test.js
PASS __tests__/user.test.js
Test Suites: 3 passed, 3 total
Tests: 15 passed, 15 total
Snapshots: 0 total
Time: 8.558 s
Ran all test suites.
```
## Contato
- [LinkedIn](https://www.linkedin.com/in/caioagiani/)
- caio.agiani14@gmail.com