Jaggery From WSO2



Lets See what is jaggery..

Jaggery is a framework developed by WSO2, to write web apps and HTTP-focused web services for all aspects of the application: front-end, communication, Server-side logic and persistence in pure Javascript. One of the intents of this framework is to reduce the gap between writing web apps and web services. Importantly, Jaggery is open-source and released under Apache 2.0.

As a pure Javascript server-side scripting engine, Jaggery combines all the strengths of Javascript with flexibility and freedom at both the development and deployment stages. Most JavaScript webapp development mechanisms restrict developers to a framework-specific structure or patterns, which demand an additional learning curve. By contrast, with Jaggery, any developers who are versed in Javascript have everything they need to get going. 

you can download and try the language from the visiting Jaggery website.

so lets download and try it...

visit the jaggery website here


there is a quick Quickstart tab that shows you how to setting up Jaggery on your pc. so lets follow it..

Prerequirement is you needs to have installed java on your PC

  1. Download & Extract jaggery-0.9.0-SNAPSHOT.zip to a directory you prefer. lets call it JAGGERY_HOME
  2. navigate to the JAGGERY_HOME and Run following commonds on teminal accourding to your Operating system.
    • For windows : JAGGERY_HOME/bin/server.bat
    • For Linux : sh JAGGERY_HOME/bin/server.sh
     
 Now you are done setting up jaggery in your pc. you can run any Jaggery app  by pointing the browser URL to http://localhost:9763/taskmaster.

 Now Lets try some coding with Jaggery.

  1. Basic Syntax:
     
    lets try common programing example of print "Hello world" from Jaggery

    the file extention should be ".jag"


     see very easy... lets keep going..

  2. Let's try something cool, write jaggery code separate and print it separately


    so now you know the basics of Jaggery also you can refer here to learn more.

    so happy Scripting..

Comments

  1. This post is really nice and informative. The explanation given is really comprehensive and informative..
    pure jaggery online

    ReplyDelete

Post a Comment

Popular posts from this blog

implement CSRF protection - Synchronizer token pattern

Implement CSRF protection - Double submit token

Oauth - Social Login implementation