First Install Deno
deno run --allow-net src/index.ts
(Optional) You can use Deno-cli, my own npm package to initiate and run deno projects.
dm run #Runs the 'deno run' command based on the configs at config.json
Returns a 'welcome' message with the actual date.
{
"message": "Welcome to my Deno API!",
"time": "2021-01-02T15:39:26.939Z"
}
Returns a list of persons registered (sample).
[
{
"name": "Lucas",
"age": 20,
"url": "https://github.com/Lucasmaia435"
}
]