Revive- a Single Page Application framework

Revive- a Single Page Application framework

I'm uploading a short presentation about a new open sourced Revive which I've made public.

Revive is a new light open source framework to handle the life cycle of an SPA application.

The main goals that made me write Revive are to have it as much as possible light, very easy to implement, and with a very short learning carve. So you just need a few minutes to go over the example page, and you're ready to hit the road.

Highlights:

A few words on Revive:

  • Revive- let’s take the good parts and get rid off the complexity
  • SPA-Server based on Event Bus
  • Messages are pushed toward the SPA via a WebSocket
  • Internal modules are communicating via internal Event Bus
  • Easy to save/restore states (we’ll get into this in details)
  • No need for a pre-compilation
  • Templates are welcome
  • Each module is realized by a JQuery Widget
  • Open source (Apache licensee)

Main components:

  • Postal bus (https://github.com/postaljs/postal.js), at your will, can be easily replace by others
  • Revive (https://github.com/ersh112356/)- to manage the flow of data
  • Revive- to manage the states (a light version of Redux- without all the hassle)
  • Bootstrap- to run the templating- totally optional and can easily be replaced by others
  • JQuery to run the Widgets

Revive- a short introduction:

  • Open source
  • Very light, only 8k (1.8k minified)
  • Apache license
  • Learning carve
  • At top, we need only to invoke
  • To handle the flow:
  • revive.on(“id_of_click_me","click", function(){//…});
  • revive.emit(“channel_orders",“queue_clicks",{message:"blah",qty:21});
  • To handle states:
  • revive.store(“lable_state_2", revive.asState("click_me"));
  • revive.restoreAll(“label_state_2");
  • Support metadata via attributes


What do we need Revive for?

  • For starters, we don’t- React+Redux are doing great
  • Yet… those don't fit into small SPA applications
  • Learning carve can kill your project
  • A strong dependency- not too easy to use Redux when you don’t need React
  • A few more…
  • What we get is
  • A light, yet a strong MVC/SPA framework
  • Very simple to write with
  • The only dependencies are Postal (and lodash), JQuery- which is already there, usually


The full presentation can be found here: Revive

The source code can be found here: Revive

要查看或添加评论,请登录

Eran Shaham的更多文章

  • Microservices Chatbot and Coronavirus

    Microservices Chatbot and Coronavirus

    A few weeks ago I shared a short post about a new initiative of mine to have a fun bot to make life much easier in…

  • Docker image build vs. jib

    Docker image build vs. jib

    Jib is an open-source Java containerizer originally coming from Google. Jib allows to build Docker images from Java…

  • A JSON schema validator

    A JSON schema validator

    A simple JSON schema validator for the Vert.x world.

    2 条评论
  • vertx-lucene-classification

    vertx-lucene-classification

    Lucene is here for a long time, ML was added to Lucene for a few releases now, yet some aspects were left out. ML can…

  • Kafka vs. Pulsar

    Kafka vs. Pulsar

    Kafka is here for a long time. Perhaps too long.

    1 条评论
  • UMLet- an open source UML tool

    UMLet- an open source UML tool

    Some aspects of my day job work are drawing many diagrams. That's part of an architect role to create design documents…

    2 条评论
  • A few words on Docker and Kubernetes

    A few words on Docker and Kubernetes

    We all know Docker Engine; it’s a container runtime. We can run “docker run” on a host whether it’s a server or a VM…

    2 条评论
  • A poor man Dependency Injection

    A poor man Dependency Injection

    Dependency Injection (DI) has been around for a while now. A typical use case would be, for instance, the same piece of…

  • Apache Storm and big data

    Apache Storm and big data

    A background: Big data is here for a while now. At the practical level, big data helps us to better understand our…

  • Cassandra VS. MongoDB

    Cassandra VS. MongoDB

    Cassandra and MongoDB became to be the two of the most popular NOSQL databases that are running around in the last few…

    4 条评论

社区洞察

其他会员也浏览了