mbbx6spp / purescript-deno-example

Forked from original to Nixify project and update README.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deno Example

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

About

Forked from original to Nixify project and update README.


Languages

Language:Dhall 48.7%Language:PureScript 40.5%Language:Nix 9.8%Language:JavaScript 0.6%Language:Shell 0.4%