MEAN 2

MEAN Stack Starters

Developing an Example MEAN Application on Windows

E:meanprojectsmean> npm install

npm http 200 https://registry.npmjs.org/mpromise/0.2.1
npm http 200 https://registry.npmjs.org/regexp-clone/0.0.1
npm http GET https://registry.npmjs.org/mongodb/-/mongodb-1.3.11.tgz
npm http 200 https://registry.npmjs.org/mpath/0.1.1

npm http GET https://registry.npmjs.org/mpromise/-/mpromise-0.2.1.tgz
npm http GET https://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz
npm http GET https://registry.npmjs.org/mpath/-/mpath-0.1.1.tgz
npm http 200 https://registry.npmjs.org/sliced/-/sliced-0.0.3.tgz
npm http 200 https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
npm http 200 https://registry.npmjs.org/muri/-/muri-0.3.1.tgz
npm http 200 https://registry.npmjs.org/mongodb/-/mongodb-1.3.11.tgz
npm http 200 https://registry.npmjs.org/mpromise/-/mpromise-0.2.1.tgz
npm http 200 https://registry.npmjs.org/regexp-clone/-/regexp-clone-0.0.1.tgz
npm http 200 https://registry.npmjs.org/mpath/-/mpath-0.1.1.tgz
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/mailcomposer/0.1.34
npm http GET https://registry.npmjs.org/simplesmtp/0.3.4
npm http 200 https://registry.npmjs.org/simplesmtp/0.3.4
npm http GET https://registry.npmjs.org/simplesmtp/-/simplesmtp-0.3.4.tgz
npm http 200 https://registry.npmjs.org/mailcomposer/0.1.34
npm http GET https://registry.npmjs.org/mailcomposer/-/mailcomposer-0.1.34.tgz
npm http 200 https://registry.npmjs.org/simplesmtp/-/simplesmtp-0.3.4.tgz
npm http 200 https://registry.npmjs.org/mailcomposer/-/mailcomposer-0.1.34.tgz

E:meanprojectsmean>bower install
bower cloning git://github.com/angular/bower-angular-cookies.git
bower cloning git://github.com/angular/bower-angular-resource.git
bower cloning git://github.com/angular-ui/bootstrap-bower.git
bower cloning git://github.com/angular/bower-angular.git
bower caching git://github.com/angular-ui/bootstrap-bower.git
bower cached git://github.com/angular/bower-angular.git
bower fetching angular
bower cached git://github.com/angular/bower-angular-cookies.git
bower fetching angular-cookies
bower fetching angular-resource
bower cached git://github.com/angular/bower-angular-resource.git
bower cloning git://github.com/twitter/bootstrap.git
bower cloning git://github.com/bestiejs/json3.git
bower cloning git://github.com/angular/bower-angular-mocks.git
bower cloning git://github.com/angular/bower-angular-scenario.git
bower caching git://github.com/twitter/bootstrap.git
bower cloning git://github.com/components/jquery.git
bower cached git://github.com/angular/bower-angular-mocks.git
bower fetching angular-mocks
bower cached git://github.com/angular/bower-angular-scenario.git
bower fetching angular-scenario
bower cached git://github.com/bestiejs/json3.git

Please note that
angularJS-IL requires jquery ~1.9.1
bootstrap requires jquery ~1.8.0

Resolved to jquery v1.9.1, which matches the requirement defined in the project’
s bower.json.
Conflicts may occur.
bower installing jquery#1.9.1

Tweaked config/config.js

development: {
db: ‘mongodb://

to point to mongolab and include name:password@

> node server

Test locally with http://localhost:3000

 

mean

For the Angular-App example:

npm install -g grunt-cli karma
cd server
npm install
cd ..
cd client
npm install
cd ..
..... configuration .....
cd client
grunt build
grunt test-watch
cd ..
cd server
node server.js

We will be deploying the application to AppFog, CloudBees, OpenShift, Mongolab, MongoHQ and Heroku.  All PAAS clouds have great support for Node.js.

Deployed Cloud Apps:

References:

TDD With MEAN

LEAN Process and LEAN UX

 

AngularJS

 

ExpressJS

 

MongoDB and Mongoose 

 

 

Leave a Reply