tuz

tuzi

A fast and lightweight non-MVC framework.

Showing:

Popularity

Downloads/wk

10

GitHub Stars

5

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

3

Size (min+gzip)

231.0KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

tuzi

A fast and lightweight non-MVC framework.

NPM

Install

Install this globally and you'll have access to the tuzi command anywhere on your system.

npm install -g tuzi

Initialize Application

cd your-app
tuzi

Enable Livereload

  1. Start watching task:

    grunt watch &
    
  2. Start your app with -l or --livereload parameter. Example:

    ./server.js -l
    

Tips

  1. You can also change port of livereload here.
  2. See also grunt-contrib-watch.
  3. Remember NOT to delete this in your app.
  4. livereload.js will be removed after running grunt ejs because of this. Be free to use this feature.

Build your site

  1. Generate your pages and minimize static resources.

    grunt
    
  2. Add root and /lib/ to your HTTP server configuration. Nginx Example:

    root /path/to/your-app/dist/;
    location /lib/ {
        alias /path/to/your-app/bower_components/;
    }
    

Q & A

  • Why is it so FAST and light than any other frameworks?

    The most common use-case of tuzi is just writing/serving static pages. Every thing on the server should be LOGIC-LESS. Everything logic should be compiled to static files before uploading to the production (nginx) OR after browser loading pages.

  • Why is it not MVC based?

    Everybody likes RESTful development nowadays, right? So it's time to drop MVC and start a new life. You can use angular or something else (XHR/XDR/JSONP/WebSocket) to fetch data from other servers.

  • Is it really a FRAMEWORK?

    tuzi is just like express. It is showing you a way to develop and manage your code/logic. I'm not really sure whether it should be called "F-R-A-M-E-W-O-R-K" but it should be helpful for our development.

  • Where is your/my test?

    It should be in test/ if there was.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100