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

https://github.com/humbertodias/docker-geraboleto

API REST para geração de boleto em PDF e PNG
https://github.com/humbertodias/docker-geraboleto

docker gerador-de-boleto java-ee

Last synced: about 1 month ago
JSON representation

API REST para geração de boleto em PDF e PNG

Awesome Lists containing this project

README

          

# Java-web-gera-boleto

REST API for PDF and PNG boleto generation.

Supported banks by [Stella Caelum](http://stella.caelum.com.br):
* 001 - Banco do Brasil
* 237 - Bradesco
* 104 - Caixa
* 399 - HSBC
* 341 - Itaú
* 033 - Santander

# Run

```sh
docker run -p 8080:8080 hldtux/geraboleto
```

# Browser

http://localhost:8080

![](doc/geraboleto-form.png)

![Boleto](doc/geraboleto.png)

# Using terminal

```sh
curl "http://localhost:8080/geraboleto" \
-H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" \
-d numeroDoBanco=237 \
-d dataDocumento=2018-06-05 \
-d dataProcessamento=2018-06-05 \
-d dataVencimento=2018-06-05 \
-d nomeBeneficiario="Beneficiário Ltda" \
-d agencia=0504 \
-d digitoAgencia=5 \
-d codigoBeneficiario=0081092 \
-d digitoCodigoBeneficiario=4 \
-d numeroConvenio=5 \
-d carteira=16 \
-d nossoNumero=806052146 \
-d digitoNossoNumero=3 \
-d valorBoleto=987.654 \
-d numeroDoDocumento=77 \
-d instrucao1="Sr. Caixa, não receber após o vencimento" \
-d instrucao2="Instrução 2" \
-d instrucao3="Instrução 3" \
-d instrucao4="Instrução 4" \
-d instrucao5="Instrução 5" \
-d localDePagamento1="Até o vencimento pagável em qualquer banco" \
-d localDePagamento2="Local De Pagamento 2" \
-d pagadorNome="John Lenon" \
-d pagadorDocumento="123456789" \
-d formatoSaida=pdf > boleto.pdf
```

or with Docker

```sh
make docker-build
make docker-run
```

# Ref

* [speeding-up-maven-docker-builds](http://whitfin.io/speeding-up-maven-docker-builds/)
* [how-to-reduce-jvm-docker-image-size](https://blog.wolt.com/engineering/2022/05/13/how-to-reduce-jvm-docker-image-size/)