Upload
dataart
View
150
Download
0
Embed Size (px)
Citation preview
JavaScriptis all you need
Артем Маркушев, Senior Webmaster / Frontend Developer
JS for Backend
Backend / NodeJS / Express vs Geddy
NodeJS
JS for Backend
Backend / NodeJS / Express vs Geddy
NodeJSconsole.log(‘Hello world!') $ node helloworld.js
Helloworld.js
JS for BackendBackend / NodeJS / Express vs Geddy
NodeJSExpress vs Geddy
JS for BackendBackend / NodeJS / Express vs Geddy
Express vs Geddy
Backend / NodeJS / Express vs Geddy
Express vs Geddy
$ npm install express$ npm install express-generator –g$ express myapp$ cd myapp && npm install$ node app.js
$ npm install -g geddy$ geddy gen app to_do$ cd to_do && geddy
Backend / NodeJS / Express vs Geddy
$ npm install express$ npm install express-generator –g$ express myapp$ cd myapp && npm install$ node app.js
$ npm install -g geddy$ geddy gen app to_do$ cd to_do && geddy
var express = require('express')var app = express()
app.get('/', function (req, res) {res.send('Hello World!')
})
var server = app.listen(3000, function () {
var host = server.address().addressvar port = server.address().port
console.log('Example app listening at http://%s:%s', host, port)})
var config = {detailedErrors: true
, debug: true, hostname: null, port: 4000, model: {
defaultAdapter: 'filesystem'}
, sessions: {store: 'memory'
, key: 'sid', expiry: 14 * 24 * 60 * 60}
};
var ToDo = function () {...// Add this inside the constructor functionthis.validatesPresent('title');this.validatesLength('title', {min: 5});
...
And winner is…
Backend / NodeJS / Express vs Geddy
Backend / NodeJS / Express vs Geddy
JS for Frontend
Frontend
Четвертьфинал
Frontend
Popularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Четвертьфинал
Frontend
Popularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
WINS
Frontend
Четвертьфинал
Четвертьфинал
Frontend
Popularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Четвертьфинал
Frontend
WINSPopularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Frontend
Четвертьфинал
Frontend
Четвертьфинал
Popularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Четвертьфинал
Frontend
WINSPopularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Frontend
Четвертьфинал
Frontend
Четвертьфинал
Popularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Четвертьфинал
Frontend
WINSPopularity
Entry threshold
Code amount
Documentation
Popularity
Entry threshold
Code amount
Documentation
Четвертьфинал
Frontend
Полуфинал
Frontend
Полуфинал
MV*
DOM power
Abstraction
Extensibility
MV*
DOM power
Abstraction
Extensibility
Полуфинал
Frontend
WINSMV*
DOM power
Abstraction
Extensibility
MV*
DOM power
Abstraction
Extensibility
Frontend
Полуфинал
Frontend
Полуфинал
MV*
DOM power
Abstraction
Extensibility
MV*
DOM power
Abstraction
Extensibility
Frontend
WINSMV*
DOM power
Abstraction
Extensibility
MV*
DOM power
Abstraction
Extensibility
Полуфинал
Полуфинал
Frontend
Финал
Frontend
Enterprise
Relevance
Weight
Speed
Enterprise
Relevance
Weight
Speed
Финал
Frontend
WINSPopularity
Entry treshhold
Code amount
Documentation
Popularity
Entry treshhold
Code amount
Documentation
Финал
Frontend
Финал
Вне конкурса
Socket.io
Socket.io
var app = require('express')();var http = require('http').Server(app);var io = require('socket.io')(http);
app.get('/', function(req, res){res.sendfile('index.html');
});
io.on('connection', function(socket){console.log('a user connected');
});
http.listen(3000, function(){console.log('listening on *:3000');
});
<script src="/socket.io/socket.io.js"></script><script>var socket = io();
</script>
Backend Frontend
Вопросы?
Вася, это конец…
vk.com/kubikami
Вася, это конец…