+ All Categories
Home > Technology > MEAN stack

MEAN stack

Date post: 20-Jan-2017
Category:
Upload: iryney-baran
View: 262 times
Download: 0 times
Share this document with a friend
20
Transcript
Page 1: MEAN stack
Page 2: MEAN stack

Structure of presentation

•What is MEAN stack?•Pros and Cons of using MEAN stack•Show simple app

Page 3: MEAN stack

Structure of Web Application

Page 4: MEAN stack

Web Application

Page 5: MEAN stack

Front end vs Back end

Page 6: MEAN stack

Back end Front end• Never visible to user What user interacts with

directly.• Built with use of server side Interface between user andlanguage and database back end.

Page 7: MEAN stack

What is MEAN stack?

Page 8: MEAN stack
Page 9: MEAN stack

AngularJSOur app’s entire front end

• Open source, maintained by Google• Client side MVC (MVVM) framework• Excellent data bindings• Easy to test

Page 10: MEAN stack

Where to get Angular?

• Extremely lightweight – download/include only what you need

https://docs.angularjs.org/misc/downloading

Page 11: MEAN stack

Node.js Lightweight web server

• Built on Google Chrome’s V8 Javascript Engine• Extremely lightweight and efficient

var http = require('http'); http.createServer(function (req, res) {

res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n');

}).listen(1337, '127.0.0.1'); console.log('Server running at http://127.0.0.1:1337/');

Page 12: MEAN stack

How to install Node.js

• http://nodejs.org/download/

• Prebuilt installers for Windows, OSX

• Use npm to install packages

Page 13: MEAN stack

ExpressCreates our routes and our API

• “minimal and flexible node.js web application framework”• Abstracts away a lot of low level logic

(e.g. for HTTP requests)• Helps organize your Node app into an MVC structure

Page 14: MEAN stack

MongoDBOur datastore

• The top NoSQL Database• Open Source, maintained by MongoDB• JSON like syntax• Key-value stores

Page 15: MEAN stack

Finally

Page 16: MEAN stack

Advantages of MEAN stack

• there is no programming language to be used with the MEAN stack other than the JavaScript.

•  increases productivity and make ease debugging• the objects stored in the database are identical to the

objects the client-side JavaScript deal with.• Support MVC• Fairly new and developing

Page 17: MEAN stack

Disadvantages

• MongoDB may work well for small to mid-sized apps, but less so for large-scale applications (e.g 100′s of millions of users).

Page 18: MEAN stack

Comparing LAMP and MEAN

Page 19: MEAN stack

Simple app with MEAN Technologies:

Page 20: MEAN stack

Recommended