In this document you will find all the information needed to setup RAIN for development.
RAIN runs on the node.js platform. Installing this platform is the first step to developing with RAIN. NPM is also needed for package management.
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
Download and run the official installer from http://nodejs.org/#download.
Follow the official node.js wiki at https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager and locate the steps for your operating system / distribution.
Follow the official node.js wiki at https://github.com/joyent/node/wiki/Installation.
Installing the RAIN SDK is the easiest way to start developing a new project with RAIN. After the installation is done, go ahead and read the RAIN SDK Tutorial to start developing!
sudo npm install -g node-gyp
sudo npm install -g rain
Inside a bash prompt, you then need to run:
npm install -g rain
This is the way to go if you want to contribute to this project. To get started with this you need to execute the following commands:
sudo apt-get install git
git clone https://github.com/rainjs/rainjs.git
cd rainjs
sudo npm install -g node-gyp
sudo npm link
Inside a bash prompt, you then need to run:
npm link
Inside the project working directory, running the raind command will start the server. Accessing http://localhost:1337/example/index will load the example component that comes with the project’s sources.
Footnotes
[1] | Using GitHub for Windows requires a GitHub account |