0.2.5 • Published 5 years ago
iqy-server v0.2.5
iqy-server
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
eslint and prettier for iqyserver
mysql for iqy-server
0.2.5
5 years ago
0.2.4
5 years ago
0.2.1
5 years ago
0.2.2
5 years ago
0.2.0
5 years ago
0.1.20
5 years ago
0.1.19
5 years ago
0.1.18
5 years ago
0.1.15
5 years ago
0.1.16
5 years ago
0.1.17
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago