https://github.com/4sskick/learn-deno-v1.0
DENO version used v1.0.5 latest version on 13/06/20
https://github.com/4sskick/learn-deno-v1.0
Last synced: 3 months ago
JSON representation
DENO version used v1.0.5 latest version on 13/06/20
- Host: GitHub
- URL: https://github.com/4sskick/learn-deno-v1.0
- Owner: 4sskick
- Created: 2020-06-12T18:32:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T14:57:20.000Z (almost 5 years ago)
- Last Synced: 2025-01-14T15:50:02.614Z (4 months ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Learning DENO v1.0 - Build simple REST API
* [x] What is DENO?
* [x] Install
* [x] using scoop to install, my env is Win10
with power shell: `iwr -useb get.scoop.sh | iex`
* [x] install deno
execute this: `scoop install deno` or for more specific version, `scoop install deno@version`
* [x] Create `hello world!`
* [x] run success with `deno run fileName.ts`
* [ ] Build REST API - CRUD operation folder `REST-dinosaurs`
* Determine what to use:
* [x] Framework
* using OAK framework as REST - `https://oakserver.github.io/oak/`
* [ ] Logger
* [ ] CORS
* [x] Environment Variable
* need to set export: true on config function
* [x] Db driver
* mongo DB on version [v0.8.0](https://github.com/manyuanrong/deno_mongo/tree/v0.8.0) which compatible dino version 1.0.5
* make sure to:
* start service of mongo on workspace - [can see here for short script](https://gist.github.com/4sskick/d600f7988e1ca64b01cb055de750b199)
* stop service [can see here for short script](https://gist.github.com/4sskick/4ae35869e506d1a625585acfe9998006)
* start with command: `deno run --allow-net --allow-env --allow-read --allow-write --allow-plugin --unstable .\main.ts`
* [ ] File watcher for auto reaload on every changes
* [x] POST /dinosaur
* Create a dinosaur
* [X] GET /dinosaurs
* List all dinosaurs
* [ ] GET /dinosaur/:name
* List all dinosaurs by name
* [ ] PATCH /dinosaur/:name
* Update a dinosaur by name
* [ ] DELETE /dinosaur/:name
* Delete a dinosaur by name