Simple REST API made with Deno & MongoDB

Simple REST API made with Deno & MongoDB

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.

Simple REST API made with Deno & MongoDB

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.

Third Party

  • 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.

run the app

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

Sample Route of REST API

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

Download Details:

Author: revell29

Source Code: https://github.com/revell29/Simple_REST_API_with_Deno

deno nodejs node javascript mongodb

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

AEM Querybuilder for JavaScript (Browser, Node, Deno)

Helix Querybuilder .AEM Querybuilder for JavaScript (Browser, Node, Deno)

NKeys for JavaScript - Node.js, Browsers, and Deno

A public-key signature system based on Ed25519 for the NATS ecosystem system for JavaScript. The nkeys.js library works in Deno, Node.js, and the browser!

Javascript module for easily generating mazes,compatible with both Deno and Node

A work-in-progress Javascript maze generator module, compatible with both Deno and Node.

Deno Tutorial for Beginners: Deno vs. Node: Better Than NodeJS?

Deno is released, it’s time to find out if it can prove a worthy competition for Node.js. What is Deno? Why Deno can be considered an alternative to Node? The main differences between Deno and Node. Write a simple Deno app.

What is Deno? The Node.JS Killer? The Deno-minator to Node?

What is Deno? The Node.JS Killer? The Deno-minator to Node? Deno is the new hype and will it be better than node.js? Deno is a secure runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language that addresses Node’s shortcomings