You will need to have Node.js installed on your machine to run this example, however it is not required to use Olark's API.
If you need to get that installed you can go to NodeJS.org to get going.
$ npm install
$ npm start
Before you can try out these examples you will need an Olark test account. You can sign up for a free account here: https://www.olark.com/signup
Step 1
Open up {path_to_project}/public/index.html
Step 2 At the top you will see a code snippet that looks like the code below
// You can find your site id at the URL below
// https://www.olark.com/settings/code
var OLARK_SITE_ID = '0000-000-00-0000'
Step 3
Change the 0000-000-00-0000
to your Olark Site ID which can be found here: https://www.olark.com/settings/code
In your favorite code editor open the file below.
{path_to_project}/public/assets/js/app.js
Olark's Full API Documentation: http://olark.com/documentation