This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var application_root = __dirname, | |
express = require("express"), | |
path = require("path"), | |
mongoose = require('mongoose'); | |
var app = express.createServer(); | |
// database | |
mongoose.connect('mongodb://localhost/ecomm_database'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module that implements non-jQuery script injection with Deferred/Promise support (using | |
* Q.js ). | |
* | |
* This deferred load notifies caller when the script is loaded... so chaining | |
* or post load actions is easily supported. | |
* | |
*/ | |
( function( win, doc, $q ){ | |
"use strict"; |