Get Started

This is a short guide on how to install Ringo on your system. The only essential requirement is the Java Platform, Standard Edition. We recommend Java SE 8 or higher to run Ringo. You can download Java from:

Installing Ringo

Download the latest Ringo release

This is the recommended and straight forward way to install Ringo. Download the latest precompiled release from the download page. For convinience, you should add the /bin directory to the PATH environment variable.

Hombrew on Mac OS X

If you use the ­čŹ║Homebrew package manager, you can use the ringojs formula:

brew install ringojs

Starting the Ringo shell

If you added Ringo to your PATH variable, run ringo without arguments:

$ ringo

This should start a shell session with a >> prompt. Use the include, require, or import functions to load any RingoJS module.

>> var fs = require('fs');
>> var file = fs.read('README.md');
>> print (file);


Running the examples

Pass any JavaScript file to ringo to run in:

$ ringo examples/httpserver.js

This will start the RingoJS demo app on port 8080. Access the app in your browser by going to http://localhost:8080/


Starting your own application

To start hacking on your own RingoJS application, use the ringo-admin create script to create a new app:

$ ringo-admin create [app directory]

If you don't pass the app directory on the command line the script will prompt you for it. Once the application has been created you can start it by running its main.js script:

$ ringo [app directory]/main.js

Packages for Ringo

To install additional Ringo packages you can either use the bare bones ringo-admin install command or the more advanced rp Ringo package manager.

See the help page on packages for more details.

Community help

If you don't find what you are looking for please tell us on the mailing list or @ringojs on Twitter.