Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edusantana/abnt-asciidoc-webhook
Webhook to build pdfs with ABNT specification
https://github.com/edusantana/abnt-asciidoc-webhook
Last synced: about 1 month ago
JSON representation
Webhook to build pdfs with ABNT specification
- Host: GitHub
- URL: https://github.com/edusantana/abnt-asciidoc-webhook
- Owner: edusantana
- License: mit
- Created: 2015-06-19T00:10:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-25T00:20:00.000Z (over 9 years ago)
- Last Synced: 2023-04-15T13:50:51.386Z (over 1 year ago)
- Language: Ruby
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# abnt-asciidoc-webhook
Webhook to build pdfs with ABNT specification## Pré-requisitos:
- pdflatex
- [asciidoctor-latex](https://github.com/asciidoctor/asciidoctor-latex)
- [abnt_asciidoc](https://github.com/edusantana/abnt_asciidoc)
- [ngrok](https://ngrok.com/download) - para testes locais## Instalação
Instale as dependências:
bundle install
## Teste local
Execute ngrok ([see Configuring Your Server at github](https://developer.github.com/webhooks/configuring/)):
./ngrok http 4567
Copie o endereço que será exibido:
Forwarding http://7e9ea9dc.ngrok.com -> 127.0.0.1:4567
## Execute o serviço sinatra
ruby server.rb
## Fork e configuração do serviço
- Faça um fork de [edusantana/trabalho-academico-abnt-asciidoc](https://github.com/edusantana/trabalho-academico-abnt-asciidoc/fork).
## Criando um Webhook
Caso necessite de ajuda, consulte [Creating Webhooks](https://developer.github.com/webhooks/creating/).
- Acesse a configuração do repositório, e abra a tela de Webhooks (`seu_usuario/trabalho-academico-abnt-asciidoc/settings/hooks`)
- Adicione o endereço copiado do ngrok e adicione `/payload`, exemplo:
http://a07ce21b.ngrok.io/payload
http://a07ce21b.ngrok.io