Alosaur

Alosaur - Deno web framework with many ES Decorators
GitHub
814
Created 6 years ago, last commit 14 days ago
21 contributors
683 commits
Stars added on GitHub, month by month
0
0
0
0
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
Stars added on GitHub, per day, on average
Yesterday
=
Last week
+0.1
/day
Last month
+0.1
/day
Last 12 months
0.0
/day
README

Alosaur πŸ¦–

Alosaur - Deno web framework πŸ¦–.

Documentation

test sponsors

  • Area - these are the modules of your application.
  • Controller - are responsible for controlling the flow of the application execution.
  • Middleware - provide a convenient mechanism for filtering HTTP requests entering your application.
  • Hooks - middleware for area, controller and actions with support DI. Have 3 life cyclic functions: onPreAction, onPostAction, onCatchAction
  • Decorators - ES decorators for query, cookie, parameters, routes and etc.
  • Dependency Injection - for all controllers and hooks by default.
  • Security - supports security context (Session, Authentication, Authorization, OAuth, Google and custom strategy) Security
  • Render pages any template render engine. (more)

δΈ­ζ–‡θ―΄ζ˜Ž

How do I use Alosaur in Deno Deploy? Use the light version of Alosaur: Alosaur Lite


Simple example

app.ts:

import { App, Area, Controller, Get } from "https://deno.land/x/alosaur/mod.ts";

@Controller() // or specific path @Controller("/home")
export class HomeController {
  @Get() // or specific path @Get("/hello")
  text() {
    return "Hello world";
  }
}

// Declare module
@Area({
  controllers: [HomeController],
})
export class HomeArea {}

// Create alosaur application
const app = new App({
  areas: [HomeArea],
});

app.listen();

And run

deno run --allow-net app.ts

More examples

Sponsors

Backers