- Install dependencies via
nix-shell
:nix-shell -p deno purescript spago
- Checkout this repo
cd
into the repo and runspago install
andspago build
- Run
deno run --allow-env --allow-read=.env,.env.defaults --allow-net=0.0.0.0:3001 ./serve.js
- 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"}