i'am trying to make a simple REST API with Deno, Oak module and MongoDB to learn about Deno. I hope this sample helping you to make a simple REST API with Deno.
- oak A middleware framework for Deno's http server, including a router middleware.
- dejs ejs template engine for deno.
- mongo Mongo Driver for Deno
- denon Denon aims to be the deno replacement for nodemon providing a feature packed and easy to use experience.
if you are using denon, run command with denon server.ts this command will auto restarting & recompile deno
application, but it you are not using denon, run with basic deno command deno run -A --unstable server.ts
| Route | Description |
|---|---|
| GET /user | return all the users |
| GET /user/:id | return a user |
| POST /user | add a user |
| PUT /user/:id | update a user |
| DELETE /user/:id | delete a user |