Skip to main content
Deno 2 is finally here 🎉️
Learn more

Dinar

A Web Framework For Deno. Simple, Easy && Cool;

Quick Start

import { Dinar, Controller, Get } from "https://deno.land/x/dinar@v0.2.0/lib/mod.ts";
const Application = await Dinar.createApplication();

// create a router use controller decorator
@Controller()
export class HomeController {
  // create a get method
  @Get()
  helloWorld() {
    return "hello dinar";
  }
}

Application.run();

// visite http://localhost:8080 and you will see `hello dinar` in your broswer!

Use Cli

install

deno install --allow-read --allow-run --allow-write --allow-net --allow-env -f --unstable https://deno.land/x/dinar@v0.2.0/bin/dinar.ts

dinar new my-app

cd my-app

denon dev

if have not install denon

deno install --allow-read --allow-run --allow-write --allow-net -f --unstable https://x.nest.land/denon@2.3.0/denon.ts