My Sites


Sunday, July 27, 2014

Getting Started with Redis !!!

So what is Redis?

  • Redis is an in memory database , key value data store.
  • This belongs to non-relational db category like mongodb. 
  • Redis is open source. 
  • Redis is a data structure server since keys can contain strings, hashes  ,lists , sets and sorted sets.

Cool Awesome Easy WEB - Tour jquery framewoks

While I was engaging in my project(MLP) at Pearson , our project architect ask me to do a task.The task was to create an user guide tutorial using JavaScript for our MLP new gateway home page, so it will give the student a clear understanding about the web site and how to use it.So it was all about a web tour.So I searched and found some of the popular web tour jquery frameworks :).
From all of them , Joy ride is an interesting framework as well as Hopscotch also.So I want to share those frameworks with all of you.. Think this will help somebody!!! Cheers!!!





Some of the popular web tour frameworks written in JavaScript
http://www.sitepoint.com/web-tour-instructional-plugins/
http://www.jquerybyexample.net/2013/04/7-jquery-website-tour-plugins.html

Monday, July 14, 2014

Node js Hello World using Express Framework

What is Node js Express Framework?
Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.

 1.)Include express dependency in package.json
 
2.) npm install



 














3.) Your Project Hierarchy will looks like as  follows.







4.)Inside app folder I have located the index.html file along with the resources  like  css,js files.
 
5.)app.js


6.)Run the application


7.)Well That's all!!!


$ npm init //To initialize the package.json
$ touch app.js // Create app.js

"use strict"; //Defines that JavaScript code should be executed in "strict mode".The "use strict" directive is new in JavaScript 1.8.5 (ECMAScript version 5).

var express = require('express');
var http = require('http');

var app = express();
app.set('port', process.env.PORT || 8081);
app.use(express.static(__dirname + '/app/'));


var server = app.listen(8081,function(){
console.log("MLP EP Config console is listening to 8081");

});

package.json

{
  "name": "MLPEPconfigConsole",
  "version": "1.0.0",
  "description": "EP Configuration and Migration API Console for Pearson MLP Newgateway",
  "main": "app.js",
  "private": true,
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Amila Iddamalgoda (amila.iddamalgoda@pearson.com)",
  "license": "ISC",
  "dependencies":{
  "express":"~4.13.1"
  }

}