Skip to content

Commit

Permalink
feat: add danet v2 alpha which uses hono (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorikairox authored Dec 27, 2023
1 parent 6d0c859 commit de31692
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frameworks/danet_v2/framework.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Danet V2 (Hono)",
"description": "The most mature backend framework for Deno, V2 in Alpha",
"website": "https://danet.land/",
"benchmarks": {
"hello_bench": "deno run -A --unstable hello_bench.ts"
}
}
18 changes: 18 additions & 0 deletions frameworks/danet_v2/hello_bench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Module, Controller, Get, DanetApplication } from "https://deno.land/x/[email protected]/mod.ts";

@Controller()
class HelloBenchController {
@Get()
hello() {
return 'Hello, Bench!'
}
}

@Module({
controllers: [HelloBenchController]
})
class HelloBenchModule {}

const danetApp = new DanetApplication();
await danetApp.init(HelloBenchModule);
await danetApp.listen(8000);

0 comments on commit de31692

Please sign in to comment.