fortune cgi
1.0.0
Fortune sem servidor (6) MicrosService.
$ ./fortune-cgi/fortune.cgi
Content-Type: text/json
{
"id": 124,
"fortune": "It may or may not be worthwhile, but it still has to be done.n"
}
Ambiente de demonstração ao vivo: https://sjmulder.nl/fortune
Primeira compilação:
$ sudo apt install build-essential libsqlite3-dev libyajl-dev
$ make
Isso produz fortune.db e fortune-cgi/fortune.cgi .
fortune.cgi no contêiner cgi-bin/ Storage da sua plataforma sem servidor.fortune.db ao lado ou coloque-o em outro lugar e defina FORTUNE_DB em seu caminho na configuração de infraestrutura como código do seu ambiente. Por Sijmen J. Mulder ([email protected]). Veja License.md.