loon
v2.0.0-rc6
Published
Enterprise ready spring like framework build on Typescript and Express
Downloads
132
Maintainers
Readme
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
2.0
fastify
adapter- add
files
to ApplicationSettings, removesrcDir, publicDir, logDir, configDir, dbDir
,rootDir
is not required - use
SettingOptions
inApplicationLoader
constructor - use
start()
return raw node http server - remove
@Service()
decorator - remove
@RestController()
decorator - remove
@On() @Subscriber
decorator - add
create-loon-app
script $beforeLoadRoutes
rename to$beforeLoadControllers
,$afterLoadRoutes
rename to$afterLoadControllers
- add
$onClose
lifecycle hook - add graceful shutdown by default
- add debug support
$ 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
- Dependency Injection
- Controller
- Middleware
- Filter
- Model
- Converter
- Initializer
Please refer to the documentation for more details. 中文文档