The Great Guide to Installing eXo Platform IDE and Developing Gadgets with REST Services

Overview of the eXo Platform IDE

eXo IDE is an online development environment inside eXo Platform, with a friendly interface developer that can easily code, deploy and run applications directly from their Platform, from writing Javascript, CSS, XML to deploying REST Services, Data Object.

eXo IDE offers:

  • Remote File System through the Virtual File System, including Browsing, File Locking, File Searching and Versioning
  • Code Editor with syntax highlighting for many popular languages and advanced features, such as Code Auto-complete, Code Outline and WYSIWYG Editor for HTML
  • Multiple programming and descriptive languages support, such as JavaScript, HTML, XML, CSS, Groovy, and more
  • Tools for developing client side applications including technologies such as Netvibes Widgets, Google Gadgets and Groovy Templates
  • Development of server-side applications, running, and interaction with the client side via REST Service

This tutorial teaches you how to install the IDE extension from the Platform Enterprise Edition bundle, begin with a basic REST services, then an advance REST services from Forum’s services methods.

– Platform 4 Enterprise Edition

Installing the eXo Platform IDE

First, let’s install IDE extension with comand ./ -i ide (in Linux, Mac) or extension.bat -i ide (in Windows).

Then start Platform with ./, in top menu Administration > IDE is installed


Basic Actions with REST services

Inside the IDE interface, when you first make a new REST service, a new untitled file groovy script “grs” will create a hello world sample code


Then you go to Run > Validate

Output displays a successful validation

Run > Deploy to deploy directly in Platform’s server with my localhost:8080 and call parameter “eXo”, I can execute REST service http://localhost:8080/rest/my-service/helloworld/eXo



We can go deeper with REST service. Here in advance sample, I use mainly Forum source codes to display which user is online.

You copy this code into your current groovy script.

– Who is online sample:

For the full source, you can use the links below in reference:

For more detail about the method to get online users, internal services, you can search in github sources:


Save > Run > Validate

Run > Deploy

Login with 2 users: root and john in two different browsers

Then call REST: http://localhost:8080/rest/my-service/useronline


Gadgets and REST services with the eXo Platform IDE

In this example, you will learn how to use a REST service (deployed with eXo IDE) from a gadget: create, deploy, run, import, and finally display it on a home page.

Source files:

1) Create a hierarchy folder and copy these files:


Right click on dev-monit to create a subfolder name advance_tutorial

In folder advance_tutorial, create sub folders js (contains javascript), style (contains CSS) then create Google Gadget, REST Service, CSS and Javascript files.


Hierarchy presentation:

WhosOnlineRestServices.grs (groovy script)

2) Run, validate and deploy your WhosOnlineRestServices and OnlineGadget


Console output



3) Import your gadget: Administration > Application > Import Applications


4) Add your gadget on the homepage: Go to home page > Edit > Page > Edit layout


Add your “Who’s Online Gadget at the top,” then save it


5) After that, your gadget is displayed in the home page


6) Invite some users and accept connection!


7) Your gadget will display your friends’ connections when they are online




– Download Platform 4: > eXo Platform 4.0 > Downloads

– IDE documentation:

– Forum sources:

– For more resources on IDE, you can follow these guides:
How to Build, Debug and Deploy Apps for Google App Engine with Cloud IDE
How to Build a Mashup of Twitter and Flickr Feeds Using eXo Cloud IDE

– Full source of basic action:

– Full source of gadget “Who is online”:

Join the eXo tribe by registering for the community and get updates, tutorials, support, and access to the Platform and add-on downloads!

Make the most out of eXo Platform 4

Register to the next webinar and get a complete overview of what you can do with eXo Platform 4. Reserve your seat now!

Be part of the discussion, share your comments