Blog Posts
-
Using MongoDB
28 April 2014
As we have looked at MongoDB earlier about how to setup and start using the command line interface we shall now see how to use it with NodeJS.
-
Role based access
26 April 2014
This is a usual requirement in any web application. You would want your web application to handle different authorization levels like an administrator, power user, public user etc.,
-
NPM
22 April 2014
NPM manages dependencies for a NodeJS applications. NPM gets installed with NodeJS when installing with an installer or you can install with a single line.
-
Javascript Callbacks
20 April 2014
From a wiki definition on callbacks, a callback is a piece of executable code that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time.
-
Introducing NodeJS
16 April 2014
NodeJS is a software platform to write standalone javascript applications popular for server-side. It uses Google’s V8 engine to execute the js code mainly designed for non-blocking I/O and asynchronous events. NodeJS applications run in single thread but all the I/O calls or network calls will be done in different threads which are managed by Node.
Javascript is a dynamically typed scripting lanuguage which supports functional, imperative programming paradigms. It is a multi-paradigm programming language.
-
Introducing ExpressJS
10 April 2014
Express is a web application framework for NodeJS. It is a highly configurable feature-rich framework which does not restrict the project structure basing on architecture. There are lot more required libraries, NodeFrameworks
-
Setup MongoDB
10 April 2014
MongoDB is the most popular NoSQL database available. You can install it from MongoDB site and the guide for installation is also provided. I strongly suggest you to spend atleast an hour in configuring the server in your respective platform.
-
Express Sessions
20 March 2014
Let me explain this in plain words than the wiki type of definition. Let us take the client server communication as it is our current requirement, the awareness or identification of the client in the server every time the client calls the server with out necessarily signing in every time. So when we elaborate the procedure, we have the following steps as that is how we are going to implement.
-
Jade Templates
18 March 2014
In the usage of creating jade I will create a login and register pages using bootstrap and a slight javascript to make the server post and get an ajax call.
Layout.jade
doctype html html head title= title link(rel='stylesheet', href='/stylesheets/style.css') link(rel='stylesheet', href='/stylesheets/bootstrap.css') script(type="text/javascript", src="/javascripts/jquery.min.js") script(type="text/javascript", src="/javascripts/bootstrap.js") script(type="text/javascript", src="/javascripts/script.js") body block content