Skip to content

Commit

Permalink
Merge pull request #1 from 7SOATSquad30/docs/create-readme
Browse files Browse the repository at this point in the history
docs: create readme
  • Loading branch information
MuriloKakazu authored Nov 21, 2024
2 parents 0dc0870 + 825ef4c commit f874273
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Payments API

## Como rodar

Instalar dependências e buildar
```
./gradlew build --refresh-dependencies
```

Subir infra local
```
docker-compose up -d database flyway
```

Rodar aplicação
```
./gradlew bootRun
```

Swagger: http://localhost:8080/swagger-ui/index.html#/

## Como rodar com integração do Mercado Pago

Configure as variáveis de ambiente:
```
MERCADOPAGO_PUBLIC_KEY=secret
MERCADOPAGO_PRIVATE_ACCESS_TOKEN=secret
MERCADOPAGO_APP_USER_ID=secret
MERCADOPAGO_POINT_OF_SALE_ID=secret
MERCADOPAGO_NOTIFICATIONS_URL=url pública apontando pro endpoint /public/webhooks/mercadopago
```

OBS: pra criar uma url pública local, pode criar um tunnel com ngrok:
```
ngrok http 8080
```

0 comments on commit f874273

Please sign in to comment.