Baskin Tapkan
VP of Software Development - Composit Group, Inc
March 21, 2015
http://slides.com/baskint/devfestmn-mean#/
March 21, 2015
March 21, 2015
first DevFestMN - 2014
Windsurf & Kiteboard/Snowkite
March 21, 2015
What is "MEAN" Stack?
March 21, 2015
March 21, 2015
OS Independence
Single-page-application (SPA)
One language on every stack
No discrete technologies
Tons of support - Node Modules
JSON for data transfer
Interacting:
March 21, 2015
MongoDB CRUD Operations
March 21, 2015
March 21, 2015
university.mongodb.com
Books
March 21, 2015
Event driven: EventEmitter
Callbacks
Async, non-blocking I/O
Streams & Buffer
(x) Callback Hell
Google V8 to execute code
Modules
March 21, 2015
Course: "Building Web Apps with Node.js"
Books
March 21, 2015
A series of middleware calls
Middleware: function with access to request and response objects, and the next in middleware in line request-response lifecycle
Events
Properties
Methods
Request
Response
Router
March 21, 2015
app.get('/games/example/auth', auth.requiresLogin, function(req, res, next) {
res.send('Only authenticated users can access this');
});
Can be used to set a cookie, user's log status, etc.
Resources:
March 21, 2015
dependecy injection
controllers
directives
factories
services
modules
animations
scopes
expressions
testing
March 21, 2015
Focuses on configuration
Focuses on code
March 21, 2015
March 21, 2015
March 21, 2015
Stale - but Yeoman for generators which does CRUD out of the box
March 21, 2015
MongoDB => CouchDB, RavenDB, Riak, Redis
AngularJS => React, EmberJS, Backbone, KnockoutJS, Drundal
Express => Hapi, Koa, Restify
NodeJS => I/O.JS
March 21, 2015
Text