https://github.com/slashhuang/cuty
A MVC Node.js framework inspired by koa and spring
https://github.com/slashhuang/cuty
cuty framework nodejs
Last synced: 12 months ago
JSON representation
A MVC Node.js framework inspired by koa and spring
- Host: GitHub
- URL: https://github.com/slashhuang/cuty
- Owner: slashhuang
- Created: 2017-03-30T16:17:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T09:01:02.000Z (almost 9 years ago)
- Last Synced: 2024-11-25T09:31:21.152Z (over 1 year ago)
- Topics: cuty, framework, nodejs
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 19
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cuty
Cuty project started on 17/3/31 , It is a Node.js framework driven by MVC and Middlewares.
In Cuty's development , I adopted a lot of ideas from koa and express.
Basically, Cuty combines the advantage of MVC and middleware-flow to shape Node.js application.
## Notice
cuty is still under development , not recommended for product usage
## Cuty's features
1. Cuty helps you to build MVC and middleware workflow Node apps.
2. LifeCycle hook is integrated in Cuty to facilitate app's flexibility.
3. Cuty is Completely compatible with Koa's 3rd party middlewares,which means that koa apps can easily migrate to Cuty
# install
```js
npm install cuty
```
# Usage
```js
const Cuty = require('cuty');
const app = new Cuty();
//middleware
app.use([(ctx,next) => {
ctx.body = 'Hello Koa';
next()
}]);
http.createServer(app.callback()).listen(3000);
```
# Comparison with express and Koa
> you can reference the this doc to have an overview comparion.
> [Comparison with Other Frameworks ](./doc/comparison.md)
# changelog
> This repo will continue Cuty's development.
## copyright
slashhuang