28
1 MEAN full stack April 3, 2015 scott lee

Mean full stack development

Embed Size (px)

Citation preview

Page 1: Mean full stack development

1

MEAN full stack

April 3, 2015

scott lee

Page 2: Mean full stack development

2

Agenda

1. New way for web application

2. What is MEAN? MongoDB

Express

AngularJS

Node.js

3. Demonstration

Page 3: Mean full stack development

3

1970 - 1990

In the beginning, there was darkness and cold. Then, …

Centralized, non-distributed

terminals

mainframe

terminals

Page 4: Mean full stack development

4

1990- 2000

In the 90’s, systems should be client-server

Page 5: Mean full stack development

5

2000 - 2015

Enterprise applications use the

multi-tier model

Page 6: Mean full stack development

6

Three ways for web

application Application server products can be separated into 3

categories:

J2EE-based solutions

Non-J2EE solutions (PHP, ColdFusion, Perl, etc.)

And the Microsoft solution (ASP/COM and now .NET with

ASP.NET, VB.NET, C#, etc.)

Page 7: Mean full stack development

7

Web Server and Application

Server

Web Server

(HTTP Server)

App Server 1

App Server 2

Internet Browser

HTTP(S)

Page 8: Mean full stack development

8

J2EE Application Scenarios

Multi-tier typical application

Copyrig

ht 2

002 ©

Paulo

Mers

on

Page 9: Mean full stack development

9

Web Application Server Model

Page 10: Mean full stack development

10

Page 11: Mean full stack development

11

Web Development Trends

For 2015 And Beyond

More User Experience

Mobile First Strategy

RESTful API

Single Page Application

MVC pattern on client and server

Cloud

Java and .NET survive on larger enterprise app

Javascript and GO language are next language after

Java

Page 12: Mean full stack development

12

New Stack

Page 13: Mean full stack development

13

Demonstration - Setup

Install MongoDB

Install Node.js

Page 14: Mean full stack development

14

MongoDB - test

Dos> mongod

Dos> mongo

use mean-demo

show collections

db.meetups.insert({ name….

show collections

db.meetups.find()

db.meetups.insert({ name…

Page 15: Mean full stack development

15

Node.js

mkdir demo

cd demo

subl package.json

subl server.js

node server

Page 16: Mean full stack development

16

Express.js

npm install express –save

subl server.js

mkdir client/views/index.html

node server

open browser

localhost:3000

Page 17: Mean full stack development

17

AngularJS

subl index.html

server.js

client/js>subl meetups-

controller.js

node server

open browser

localhost:3000

Page 18: Mean full stack development

18

AngularJS 2

List display

Add button

Page 19: Mean full stack development

19

Page 20: Mean full stack development

20

Page 21: Mean full stack development

21

Page 22: Mean full stack development

22

Demonstration – DB connection

Page 23: Mean full stack development

23

Image from: http://www.creativeworkline.com/2014/05/meanio-vs-meanjs-comparison/

Page 24: Mean full stack development

24

2015 - Sr Java Developer

2020 - Sr JavaScript Developer

Page 25: Mean full stack development

25

Why MEAN

JavaScript everywhere

One language, no context

change

Consistent best practices

Asynchronous Communication

Scalable

Page 26: Mean full stack development

26

Questions

Page 27: Mean full stack development

27

Sources & Resources

MEAN.js (http://meanjs.org/)

Write Modern Web Apps with the MEAN Stack

Learning Single-page Web Application Development

Best tutorial for MEAN

https://www.youtube.com/watch?v=AEE7DY2AY

vI

Page 28: Mean full stack development

28

Next Seminar?