Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T00:47:18.000Z (10 months ago)
- Last Synced: 2024-05-01T16:30:32.921Z (9 months ago)
- Topics: api, docker, es6, mongodb, nodejs, swagger
- Language: JavaScript
- Homepage:
- Size: 394 KB
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
API Biblioteca | Nodejs
![languages-count](https://img.shields.io/github/languages/count/caioagiani/biblioteca-nodejs-api)
![languages-top](https://img.shields.io/github/languages/top/caioagiani/biblioteca-nodejs-api)
![repo-size](https://img.shields.io/github/repo-size/caioagiani/biblioteca-nodejs-api)
![last-commit](https://img.shields.io/github/last-commit/caioagiani/biblioteca-nodejs-api)
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 [email protected]: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 testStarting db ... done
> [email protected] test /usr/src/app
> NODE_ENV=test jest --setupFiles dotenv/config --detectOpenHandles --forceExitPASS __tests__/booking.test.js
PASS __tests__/book.test.js
PASS __tests__/user.test.jsTest 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/)
- [email protected]