Giter Site home page Giter Site logo

alosaur's Introduction

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 - for query, cookie, parametrs, routes and etc.
  • Dependency Injection - for all controllers and hooks by default from microsoft/TSyringe (more about alosaur injection).
  • 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/[email protected]/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

alosaur's People

Contributors

blust96 avatar borisliu avatar cmd-johnson avatar devgar avatar ingrim4 avatar irustm avatar loic-roux-404 avatar nathansmb avatar nebrelbug avatar nightowl07 avatar pandres95 avatar pgg avatar ptabis avatar seanwong24 avatar spiritlebon avatar stanislavstrelnikov avatar takxlz avatar turbinya avatar unlimitedcoder2 avatar x4m3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.