Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        


API NodeJS

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`

Docs app

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


Start app

## Testes

```bash
$ docker-compose run --rm api npm test

Starting db ... done

> [email protected] 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/)
- [email protected]