@jimizai/driver-types

type-foxx driver types


Keywords
injectable, koa, monorepo, nodejs, nx, typescript
License
ISC
Install
npm install @jimizai/driver-types@2.0.18

Documentation

Quick start

$ npm install -g @jimizai/foxx-cli
$ foxx init <project-name>

Hello foxx

// main.ts
import { boostrap } from '@jimizai/core';
import { KoaFoxxDriver } from '@jimizai/driver-koa';
import './app/home.controller';

boostrap({
  Driver: KoaFoxxDriver,
  srcDirs: [],
});

// app/home.controller.ts
import { Get, Controller } from '@jimizai/decorators';

@Controller()
export class HomeController {
  @Get()
  home() {
    return 'hello foxx';
  }
}

Quick started

  • simple - A simple example to quick start use foxx