chyan
TypeScript icon, indicating that this package has built-in type declarations

0.4.8 • Public • Published

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,
  }

Package Sidebar

Install

npm i chyan

Weekly Downloads

30

Version

0.4.8

License

MIT

Unpacked Size

344 kB

Total Files

122

Last publish

Collaborators

  • an1cca