14

Click here to load reader

Mean Stack

Embed Size (px)

Citation preview

Page 1: Mean Stack

Ali [email protected] Team Lead

#vngrsbootcamp

Mean Stack

/alidavut

Page 2: Mean Stack

M E A N

Page 3: Mean Stack

JSON Data

Page 4: Mean Stack

> db.lists.findOne(){

"_id" : ObjectId("546e50de43b18ba1354348c5"),"name" : “Gunluk Isler","items" : [

{"name" : “Email Kontrolu","_id" : ObjectId("546e51d859957afa36076d55"),"isDone" : true

}]

}

Page 5: Mean Stack

JSON Data

Esnek Yapı

Page 6: Mean Stack

> db.articles.find().pretty()[{

"_id" : ObjectId(“546e50de43b18ba1354348c5"),"title" : “Angular Bootcamp”

},{

"_id" : ObjectId("546e50de43b18ba1354348c6"),"content" : “MEAN Stack”

}]

Page 7: Mean Stack

Esnek Yap

JSON Data

Konum Desteği

Page 8: Mean Stack

db.places.find( { loc: { $geoWithin: { $polygon: [ [ 0 , 0 ], [ 3 , 6 ], [ 6 , 0 ] ] } } })

Page 9: Mean Stack

Esnek Yap

JSON Data

Konum Deste

Ücretsiz

Page 10: Mean Stack

Sunucu Tarafında JS

Öğrenmesi KolayBinlerce Paket (106, 706)

Non-Blocking IO

Page 11: Mean Stack

var http = require('http');var fs = require('fs');

var server = http.createServer(function (req, res) { fs.readFile("simple.txt", function (error, data) { res.end(data); });});

server.listen(9090);

Page 12: Mean Stack
Page 13: Mean Stack

/*  - http://localhost:3000/hello/istanbul  - Hello istanbul

- http://localhost:3000/hello/izmir  - Hello izmir*/

var express = require('express');var app = express();

app.get('/hello/:name', function (req, res) { res.send('Hello ' + req.params.name)});

app.listen(3000);

Page 14: Mean Stack

DEMOTODO List