https://github.com/luispagarcia/deno-rest
A simple example how to make an REST API CRUD in Deno
https://github.com/luispagarcia/deno-rest
api deno rest rest-api typescript
Last synced: about 1 month ago
JSON representation
A simple example how to make an REST API CRUD in Deno
- Host: GitHub
- URL: https://github.com/luispagarcia/deno-rest
- Owner: LuisPaGarcia
- Created: 2020-05-23T18:20:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T18:31:02.000Z (about 6 years ago)
- Last Synced: 2025-02-01T00:41:15.316Z (over 1 year ago)
- Topics: api, deno, rest, rest-api, typescript
- Language: TypeScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## rest-deno
A simple example how to make an REST API CRUD in Deno
1. Clone the repo
2. You must have Deno 1.0 version or superior.
### Using Deno:
```sh
deno upgrade --version 1.0.2
```
### With Shell:
```sh
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.0.2
```
### With PowerShell:
```sh
iwr https://deno.land/x/install/install.ps1 -useb -outf install.ps1; .\install.ps1 v1.0.2
```
3. 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.
```sh
$ deno run --allow-env --allow-net ./api/index.ts
```