0.2.5 • Published 4 years ago

iqy-server v0.2.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

iqy-server

GitHub starsnpmGitHub forksGitHub issuesnpmGitHub license

Read Doc

a koa and typescript based web framework

  • iqy-cli 脚手架支持 使用脚手架快速创建项目,全局安装脚手架。脚手架地址
npm install iqy-cli -g

so init
  • Quick Start
npm install iqy-server --save
// index.ts
import SoServer from 'iqy-server'

const server: SoServer = new SoServer()

server.Listen(12280)
//  test.controller.ts
import {SoController,Controller, Get,Autowired} from 'iqy-server'
import { TestService } from './test.service'
@Controller('/')
export class TestController extends SoController {

  @Autowired
  private testService: TestService

  @Get('/')
  async name(){
    this.ctx.body = 'hello iqyserver'
  }
}
//  test.service.ts
import {SoService,Service } from 'iqy-server'

@Service
export class TestService extends SoService {
  async query(): Promise<string>{
    return "aaa"
  }
}
  • Run
ts-node index.ts

Plugin

0.2.5

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.15

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago