loon
loon copied to clipboard
:cloud: Spring like framework build with Typescript
LOON(气球)
Now it's time to celebrate, LOON 2.0!
Enterprise ready spring like framework build with Typescript on top of fastest node http framework fastify or express
Changelog
2.0
fastifyadapter- add
filesto ApplicationSettings, removesrcDir, publicDir, logDir, configDir, dbDir,rootDiris not required - use
SettingOptionsinApplicationLoaderconstructor - use
start()return raw node http server - remove
@Service()decorator - remove
@RestController()decorator - remove
@On() @Subscriberdecorator - add
create-loon-appscript $beforeLoadRoutesrename to$beforeLoadControllers,$afterLoadRoutesrename to$afterLoadControllers- add
$onCloselifecycle hook - add graceful shutdown by default
- add debug support
Quick Start
$ npm install -g create-loon-app
$ create-loon-app <appName>
$ cd <appName>
$ npm start
Open your browser, and go to http://localhost:9000, you will get hello world response
Features
- Dependency Injection
- Controller
- Middleware
- Filter
- Model
- Converter
- Initializer
Please refer to the documentation for more details. 中文文档
Core Team
Vincent Founder of loon |