Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
In this turorial we will walk you through how to install Node.js on a Ubuntu 12.04 server.
The best way of installing Node.js in to build it from the source.
Code: sudo apt-get install python-software-properties python g++ make
Code: sudo add-apt-repository ppa:chris-lea/node.js
Code: sudo apt-get update
Code: sudo apt-get install nodejs
Building from source:
Code: sudo apt-get update
Code: sudo apt-get install git build-essential wget
Code: wget http://nodejs.org/dist/v0.10.16/node-v0.10.16.tar.gz
Code: tar xvf
Code: pushd node-v0-10-16
Code: sudo make install
Test the node.js installation:
Code: node –version
Code: npm install socket.io
Code: npm info socket.io version
Creating a Node.js application using Socket.IO and Express
Create a package.json file that contains the dependencies of your application.
Navigate to the folder containing the package.js file and install the modules:
Code: sudo npm install
Create the server side application eg app.js. You can call it whatever you like.
Make the application run like a service.
Create a upstart script for your Node.js application so it run as a service and make it use Forever as the process monitor.
Put the script in /etc/init.d/ folder and make it executable chmod u+x “script name”
Code: sudo update-rc.d node-live-update defaults
Click her and download Putty
Setup SSH connection to AWS
Find the associated Elastic IP for the server and set it in the host name.
Choose SSH with port 22
Under Connection, expand the SSH node, and then select Auth. Browse to the .ppk file and save the session.
Create a new Google Apps for Business account:
Click on “Get started”
Step 1: About you
Name: Insert the clients name
About your bussiness
Business or organization name: “customers bussiness name”
Number of employees: Set the correct number
Country: Set country for the customer
Phone: Insert the customers phonenumber
Step 2: Business Domain Address
Choose the option and insert the domain
Step 3: Configure the domain
First you need to verify the ownership of the domain.
Log in to the newly created domain managment console and start the verification prosses. There are different metods to verify but the easiest way is to add a TXT record to the DNS of the domain.
To add the TXT record you need to log in to the DNS managment console and add the record here.
After the verification prosses is completed you can start to set up the clients.
You can set the logo under business profiles.
Step 4: Connect the client to the reseller program
In the clients Google Apps console go to support and copy the client pin.
Log in to google.com/a/reseller.nuvopoint.com
Click on resellers tools and enter the customers domain and PIN under “Csutomer registration”
Step 5: Set up billing
Instruct the client to set up billing with a flexi plan.
To setup the DNS configuration follow these steps:
Log in to UnoEuro administration > controlepanel > DNS administration.
Add a new DNS record for YOURDOMAIN.COM and *.YOURDOMAIN.COM with the value 126.96.36.199.
Go to nuvoPoint backend > network administration > websites > YOUWEBSITE. Identify the website ID in the URL.
Go to nuvoPoint backend > network administration > settings > domains. Add website ID and WWW.YOURDOMAIN.COM and YOURDOMAIN.COM as primary.