A Typescript + Node.js lightweight framework for quick building scalable, easy to read and maintain, server-side applications 🐎
看了一眼,ioc、装饰圈,面向对象,ts。基本上和midway是一个路数。可以观望一下
controller
@controller("/")
class AppController {
@httpGet("/")
execute(@response() res: any) {
return res.send("Hello from ExpressoTS!");
}
}
模型
@provide(User)
class User {
private id: string;
public name: string;
public email: string;
constructor() {
this.id = uuidv4();
}
get Id(): string {
return this.id;
}
}
各种装饰器
https://doc.expresso-ts.com/docs/overview/decorators
代码目前还很挫 有一颗menorepo的心,却没有menorepo的命
看看这依赖,瞎用。
"dependencies": {
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@release-it/conventional-changelog": "^5.1.1",
"chalk": "^4.1.2",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"husky": "^8.0.3",
"inversify": "^6.0.1",
"inversify-binding-decorators": "^4.0.0",
"inversify-express-utils": "^6.4.3",
"jest": "^29.5.0",
"reflect-metadata": "^0.1.13",
"release-it": "^15.9.3",
"winston": "^3.8.2",
"winston-daily-rotate-file": "^4.7.1"
},
"devDependencies": {
"@types/express": "^4.17.17",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"prettier": "3.0.0",
"ts-jest": "^29.0.5",
"typescript": "^5.0.3"
},
- winston不如pino
- 基于express + inversify实现的ts版本
- 目前看品味一般
- 目前star数700多
按照这种情况,去蹭pr三非常容易的。