Click here to load reader
Upload
ali-davut
View
91
Download
0
Embed Size (px)
Citation preview
M E A N
JSON Data
> db.lists.findOne(){
"_id" : ObjectId("546e50de43b18ba1354348c5"),"name" : “Gunluk Isler","items" : [
{"name" : “Email Kontrolu","_id" : ObjectId("546e51d859957afa36076d55"),"isDone" : true
}]
}
JSON Data
Esnek Yapı
> db.articles.find().pretty()[{
"_id" : ObjectId(“546e50de43b18ba1354348c5"),"title" : “Angular Bootcamp”
},{
"_id" : ObjectId("546e50de43b18ba1354348c6"),"content" : “MEAN Stack”
}]
Esnek Yap
JSON Data
Konum Desteği
db.places.find( { loc: { $geoWithin: { $polygon: [ [ 0 , 0 ], [ 3 , 6 ], [ 6 , 0 ] ] } } })
Esnek Yap
JSON Data
Konum Deste
Ücretsiz
Sunucu Tarafında JS
Öğrenmesi KolayBinlerce Paket (106, 706)
Non-Blocking IO
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);
/* - 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);
DEMOTODO List