fortune cgi
1.0.0
Microservice Fortune sans serveur (6).
$ ./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"
}
Environnement de démonstration en direct: https://sjmulder.nl/fortune
Première compilation:
$ sudo apt install build-essential libsqlite3-dev libyajl-dev
$ make
Cela donne fortune.db et fortune-cgi/fortune.cgi .
fortune.cgi dans le conteneur cgi-bin/ Storage de votre plate-forme sans serveur.fortune.db à côté, ou placez-le ailleurs et définissez FORTUNE_DB sur son chemin dans la configuration de l'infrastructure de votre environnement. Par Sijmen J. Mulder ([email protected]). Voir Licence.Md.