Light Core

Join the chat at https://gitter.im/networknt/light

Light is an Omni-Channel Application Framework/REST API Server Platform leveraging AngularJS, Undertow and OrientDB. It's lightning fast, light weight and sheds light on how Web Component based front end applications, Microservices REST APIs can be built and deployed. On the front end, it is easy to add new components, views and applications and to deploy them individually all through to production. On the back end, it adhears to the REST API with Java POJO and deploys individual Java class file to production without dealing with EARs, WARs and JARs.

Technical Stack

Features

The Light Framework breaks a large application into smaller manageable pieces where each piece can be built by different teams or individuals. Front end Applications and Back end Services are separated by the API contract and can evolve in independently.

Front End

Back End

Get Started

Installation On Linux

cd ~/networknt
git clone [email protected]:networknt/light.git
git checkout develop
cd light
cd networknt
npm install

After above steps you should have a build folder in light/networknt

Let's update the virtualhost.json in light/server/src/main/resources/config/dev

Here is the one works on my MacBookPro

{
  "www.edibleforestgarden.ca" : {
    "base" : "/Users/stevehu/networknt/light/edibleforestgarden/build",
    "transferMinSize" : "100",
    "supportDevices" : [ "Browser", "Android", "iOS" ],
    "id" : "www.edibleforestgarden.ca"
  },
  "www.networknt.com" : {
    "base" : "/Users/stevehu/networknt/light/networknt/build",
    "transferMinSize" : "100",
    "supportDevices" : [ "Browser", "Android", "iOS" ],
    "id" : "www.networknt.com"
  },
  "example" : {
    "base" : "/Users/stevehu/networknt/light/demo/build",
    "transferMinSize" : "100",
    "supportDevices" : [ "Browser", "Android", "iOS" ],
    "id" : "example"
  }
}

You need to update the base for networknt to your local absolute folder.

Also, you need to update /etc/hosts to add www.networknt.com for 127.0.0.1

127.0.0.1       localhost example www.networknt.com

Now, let's build and start the server

cd ~/networknt
cd light
mvn clean install
cd server
java -jar target/light-server.jar

Now you can access the front end from browser.

http://www.networknt.com:8080

To login: stevehu/123456

Installation On Windows

Installation On Mac

Live sites powered by Light Framework

www.networknt.com

www.edibleforestgarden.ca

username: test password: 123456