An open API service indexing awesome lists of open source software.

https://github.com/betasu/sujs

Unopinionated, fast , simple web framework for node
https://github.com/betasu/sujs

Last synced: 3 months ago
JSON representation

Unopinionated, fast , simple web framework for node

Awesome Lists containing this project

README

          

# Sujs
Unopinionated, fast , simple web framework for node
## Feature
Sujs is a lightweight web framework for nodejs,it is committed to a convenient interactive.it has the following features:
1. Sujs's source code is base on the principle of Express,but lighter.
2. Inject common methods in the form of plug-ins,no need to install.
3. All source codes (including plug-ins) are recorded in my blog.click here to visit my blog

## Install
```
$ npm install sujs
```
## Manual
```
//unfinished
```
## Quick Start
```javascript
var sujs=require('sujs');
var app=sujs();
//load cookie-parser plugin
var cookieParser=sujs['cookieParser'];

//inject cookie-parser plugin
app.use(cookieParser);)

app.use(function (req,res,next) {
console.log('I am middleware');
next();
})

app.get('/',function (req,res) {
res.send('hello front end!');
})
```

## Update
Last vision:v1.0.7
- Redirect plugin completed.
- Plug-in loading mechanism is completed.

## License
MIT