fortune cgi
1.0.0
Serverless fortune(6) microservice.
$ ./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"
}
Live demo environment: https://sjmulder.nl/fortune
First compile:
$ sudo apt install build-essential libsqlite3-dev libyajl-dev
$ make
This yields fortune.db and fortune-cgi/fortune.cgi.
fortune.cgi in the cgi-bin/ storage container of your
serverless platform.fortune.db next to it, or place it somewhere else and set
FORTUNE_DB to its path in your environment's infrastructure-as-code
configuration.By Sijmen J. Mulder ([email protected]). See LICENSE.md.