After getting everything to work, I finally wanted to learn how it worked. Therefore, I read The Node Beginner Book by Manual Kiessling. An excellent introductory tutorial that should not be skipped. After become an advanced novice, I wanted to dive into developing my own rapid prototypes. However, I am used to working with CakePHP and wanted a similar style framework to make my mock ups quick. The following is what I learned from my endeavors.
Node.js as MVC
Install the express node module
npm install -g expressCreate the project folder
express /path/to/projectInstall the express folder in the folder of your choice. I chose to put my in the same folder that node.js belongs in
cd /path/to/folder node is in/ && npm install expressAs my Linux skills still have room for improvement, I used the gui and went to express/examples/mvc and copied all and went to /path/to/project and pasted all overriding all the old stuff.
Open app.js with your favorite editor and change line 6 to
var express = require('express')Open mvc.js and change line 7 to
express = require('express')Go back to the terminal and install ejs
npm install -g ejsGo to the project folder and enter node_modules
cd /path/to/project/node_modulesInstall the source code of ejs
npm install ejsNow that all modules are loaded go back to the project folder and update the dependencies
cd .. && npm install -dThe MVC framework should be ready to go. I'll be posting examples using the MVC framework shortly. So keep watching.