GithubHelp home page GithubHelp logo

saposs-org / zuckerjs Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 30 KB

A simple Javascript library to build any SPA(Single Page Application) web application in a new way(component-based architecture + all uncoupled components).

Home Page: http://zuckerjs.saposs.com

License: MIT License

JavaScript 96.26% HTML 3.74%
js javascript spa architecture component component-architecture component-based pattern html css

zuckerjs's Introduction

ZuckerJS - A new way to build SPA web application.

ZuckerJS is a simple JavaScript library which was given birth to assist any web developer to build any SPA web application by component-oriented architecture(uncoupled components: view, handler and service). It's free, fast, efficient and no required dependencies.

Basically, ZuckerJS relies on some configurations from you to specify what components will be loaded. All of them will be loaded into memory. When user requests a page, ZuckerJS will get location's hash of current window to specify what page will be loaded(in theory). In practice, all components, that have that same route/hash, will be executed to render page dynamically.

ZuckerJS's concept:

Hiding the complexity and creating SPA web application by writing or reusing uncoupled components(view, handler and service components) which ZuckerJS loads based upon developer-defined configurations. It will render web page based on user's requests.

NOTE: this term "component-oriented architecture" can be understood as a set of all uncoupled components to form an application.

Install and Usage

It's simple to install and use ZuckerJS, only in 3 following steps:

  • Download ZuckerJS library "zucker.min.js" from source.
  • Include it at the end of body tag.
  • Configure ZuckerJS for application:
    <script>
        window.zucker.config([YOUR_COMPONENT_LIST_HERE]).execute();
    </script>

See more details on WIKI here.

Samples

You can find two samples from source: simple and todo(played with AngularJS).

Benefits

  • Simple, fast and efficient.
  • Component-oriented architecture(all uncoupled components).
  • SPA + cache.
  • Multiple layouts.
  • Easy to test.
  • Replace any component easily.
  • Mark version easily.

If you want some of them, ZuckerJS will be a right decision for you to work on.

Play with third-party libraries

ZuckerJS can play with all third-party libraries well. Some of them are:

  • jQuery.
  • AngularJS.
  • VueJS.
  • EmberJS.
  • KnockoutJS.

and so on.

Browser Compatibility

  • Google Chrome.
  • Firefox.
  • Edge & Edge Dev.
  • Opera.
  • Safari.
  • IE 8+.

Contributing

We're very glad to receive any contribution from you to make ZuckerJS better.

We appreciate your help!

Copyright & License

©Copyright 2019 by Saposs - MIT License

zuckerjs's People

Contributors

1001binary avatar saposs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

luan0ap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.