Deno, the creation of Ryan Dahl is a simple, modern, and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. As Deno 1.0.0 has released, there is much-awaited curiosity amongst developers around working with this new stack.

When it comes to learning a new language, the first thing that comes to our mind is the creation of a todo app, supporting CRUD functionality. So here we will be creating a very simple Todo application using the Deno.

So before starting I assume you have installed Deno on your system. For the database, we will be using the JSON file as of now to completely focus on creating web API using Deno. Not more words and now let’s start.

The file structure we are going to follow is as below

	// Final directory structure
  deno-todo-api/
    --|controllers/
      |--|todo.ts
      |data/
      |--|todos.ts
      |interfaces/
      |--|Todo.ts
      |routes/
      |--|todo.ts
    --|server.ts

At any point in time, if you are stuck somewhere, you can follow this link to get the complete code.

#deno #node #rest #api #web-development

Create REST API using Deno
2.80 GEEK