- Install Deno
# install deno
curl -fsSL https://deno.land/install.sh | sh- Start vault
vault server -dev -dev-root-token-id=root- Run TF to setup Vault
cd tf
terraform init
terraform apply- Start the app
VAULT_TOKEN=... VAULT_ADDR=... deno run dev- Do some stuff!
# create a new record
curl --location 'http://localhost:4199/data' \
--header 'Content-Type: application/json' \
--data '{
"data": "he is very UNWELL",
"key": "medical"
}'
# get data back
curl --location 'http://localhost:4199/data/<id>'