A simple example how to make an REST API CRUD in Deno
- Clone the repo
- You must have Deno 1.0 version or superior.
deno upgrade --version 1.0.2
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.0.2
iwr https://deno.land/x/install/install.ps1 -useb -outf install.ps1; .\install.ps1 v1.0.2
- Run the
./apis/index.ts
file.
You will have to add the permission for net
use adding --allow-net
flag.
You will have to add the permission for env
use adding --allow-env
flag.
$ deno run --allow-env --allow-net ./api/index.ts