This is a simple API that let you store fact about anything you want and retrieve it later with an api key(uuid v4).
Documentation is available here
This project uses Postgres as a database, the easiest way is to use Supabase to setup postgres database.
-
Copy
.env.example
to create a new file.env
cp .env.example .env
-
Get your postgres database connection string
-
Add your connection string to the
DATABASE_URL
variableDATABASE_URL=postgres://user:password@host:port/database
-
Run the server
deno run --allow-net --allow-env --allow-read --watch ./src/app.ts
-
To watch changes for documentation html and css files, run
deno run --allow-net --allow-read --allow-write --watch ./src/public/index.ts
note: you need to manually save the
/src/public/index.ts
file
Copyright (c) 2022 Zaid Mukaddam