Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Introducción a express - meetup node.js argentina
Dan Zajdband
October 26, 2012
Technology
1
280
Introducción a express - meetup node.js argentina
Dan Zajdband
October 26, 2012
Tweet
Share
More Decks by Dan Zajdband
See All by Dan Zajdband
danzajdband
0
49
danzajdband
0
86
danzajdband
0
53
danzajdband
0
24
danzajdband
0
170
danzajdband
2
250
danzajdband
1
100
danzajdband
1
110
Other Decks in Technology
See All in Technology
sumi
0
490
hololab
0
270
ocise
0
150
shirayanagiryuji
0
2.1k
torisoup
0
300
pinboro
0
2.2k
sasakendayo
2
430
cmwatanabeseigo
0
350
hsano
0
130
satotakeshi
2
440
hirosys
0
140
kraj
0
4.3k
Featured
See All Featured
malarkey
119
16k
sstephenson
144
12k
qrush
285
18k
edds
56
9.3k
sachag
446
36k
yeseniaperezcruz
302
31k
bermonpainter
342
26k
jrom
114
7.1k
scottboms
251
11k
ammeep
656
54k
eitanlees
111
9.9k
hatefulcrawdad
257
17k
Transcript
Introducción a express
Dan Zajdband
@dzajdband
zajdband.com.ar
los-rayos.com.ar
None
La filosofía de node
“Node.js has a relatively small core set of functionality. The
general guideline is that node core contains everything that is strictly necessary to do network programming, and write userland modules.” @izs - node.js maintainer, npm creator
require(‘http’)
require(‘http’).createServer(function(req, res){ res.writeHead(200, {‘Content-Type’: ‘text/plain’}); res.end(‘Piojo Lopez\n’); }).listen(3000);
npm install express
• Powered by Connect • Middleware • Routing • HTTP
helpers • Liviano • Soporta +14 template engines
None
npm install -g express
None
NODE_ENV=development
None
lluvia de módulos
• Socket.IO (https://github.com/LearnBoost/ socket.io) • Passport (https://github.com/jaredhanson/passport) • Mongoose (https://github.com/LearnBoost/
mongoose) • Redis (https://github.com/mranney/node_redis) • Superagent (https://github.com/visionmedia/ superagent)
• Up (https://github.com/LearnBoost/up) • bcrypt (https://github.com/ncb000gt/ node.bcrypt.js/) • Oauth (https://github.com/ciaranj/node-oauth)
• nodemailer (https://github.com/andris9/ Nodemailer) • Jade (https://github.com/visionmedia/jade)
Bonus track
components
client-side package manager
• Componentes modulares • No solo para javascript • templates
• Extensible • Resuelve dependencias • Rápido (mucho más que, por ejemplo, npm)
follow @component_js