Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viniciuscestarii/rinha-2024q1-node-graphql-mongodb
🔥 Desafio do Sibelius Seraphini! Esse projeto usa a stack da woovi (node, mongodb e graphql) para resolver a segunda edição da Rinha de Backend
https://github.com/viniciuscestarii/rinha-2024q1-node-graphql-mongodb
docker koa mongodb mongoose nginx nodejs typescript
Last synced: 3 months ago
JSON representation
🔥 Desafio do Sibelius Seraphini! Esse projeto usa a stack da woovi (node, mongodb e graphql) para resolver a segunda edição da Rinha de Backend
- Host: GitHub
- URL: https://github.com/viniciuscestarii/rinha-2024q1-node-graphql-mongodb
- Owner: ViniciusCestarii
- Created: 2024-05-01T16:54:40.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T00:01:32.000Z (7 months ago)
- Last Synced: 2024-10-01T02:04:43.922Z (3 months ago)
- Topics: docker, koa, mongodb, mongoose, nginx, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 108 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Koa with Bun
## Desafio do [Sibelius Seraphini](https://twitter.com/sseraphini/status/1785287978509537790)
Esse projeto usa a stack da woovi (node, mongodb e graphql) para resolver a [segunda edição da Rinha de Backend](https://github.com/zanfranceschi/rinha-de-backend-2024-q1)
## Instalação
1. configure .env file
2. Run docker containers
```bash
docker-compose up
```3. [Open graphql](http://localhost:9999/graphql) page and start to query
- query to fetch client "extrato"
```
query {
extrato(id: 2) {
cliente {
nome
}
saldo {
total
limite
data_extrato
}
ultimas_transacoes {
valor
tipo
descricao
realizada_em
}
}
}
```- mutation to make a transaction
```
mutation {
makeTransacao(id: 1, descricao: "Compra", tipo: "d", valor: 100) {
clientId
nome
saldo
limite
}
}
```