Skip to content

kyaruary/chyan

Repository files navigation

Chyan

A web framework base on koa & typescript & DI & decorators

Quick Start

import { ChyanApplication, Get, BootstrapApplication } from "chyan";

@ChyanApplication()
export class Application extends BootstrapApplication {
  main() {
    this.app.useRouter(this.router);
    this.app.run();
  }

  @Get()
  helloWorld() {
    return "chyan.co";
  }
}

make sure that your tsconfig.json file contain this

"compilerOptions": {
    "target": "ES2016",
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
  }

About

Nodejs webframework, Aye!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published