Quote of the day API
| .zed | ||
| .gitignore | ||
| deno.json | ||
| deno.lock | ||
| LICENSE | ||
| main.ts | ||
| README.md | ||
qotd
A quote of the day API (actually quote of the 12 hours in a day API).
The random code is flawed, there are collisions, but since it's for my personal use I don't really care
How to use
Make a GET request to https://qotd.nin0.dev. You will receive a JSON object in the { author: string; quote: string; } format.
How to host
- Install Deno
- Put your quotes in a file named
quotes.json. It's an array of the quotes format mentioned above deno --allow-net --allow-env=PORT --allow-read=quotes.json main.ts- You can also set the env
PORTto set your port