@knno/web-lite
v1.7.1
Published
An light weight web framework for node-js.
Downloads
11
Readme
@knno/web Framework
This framework is a light-weight, easy to use library. It provided most commonly used middlewares to let you can develop a full featured web application.
Getting start:
Create the project
Create a full featured demo project that using @knno/web as back-end framework and using @knno/ui as front-end framework:
npm create knno-web <project-name>
Build project
npm run build
Start the project
npm start
Use nodemon to debug project
- Start watching
npm run watch
- Create a 'JavaScript Debug Terminal' window (in vscode) and run following command:
npm run debug
Features
- Session: Control user login status
- Security: Control access authorization
- Body Parser: Provide methods to access request contents
- Controller: Route request to controller js file
- Static: Provide static resources access
- Template: Provide js template render method (Powered by thor-tpl)
- WebSocket: Provide WebSocket communication
- Auto generate api-docs page (See demo project to get more details)