Deno Example

June 23, 2022 ยท View on GitHub

  1. Install deno
  2. Checkout this repo
  3. cd into the repo and run spago install and space build
  4. Run
deno eval 'import { main } from "./output/Main/index.js"; main();'
  1. Open a new terminal and run
curl -H "content-type: application/json" --data '{"x": 1}' localhost:3001/v1/projects/asdf/environments/fdsa/flags/asdf

which will return

{"x":1,"environment":"fdsa","flag":"asdf","project":"asdf"}