Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducción a express - meetup node.js argentina

Introducción a express - meetup node.js argentina

Dan Zajdband

October 26, 2012
Tweet

More Decks by Dan Zajdband

Other Decks in Technology

Transcript

  1. Introducción a express

    View full-size slide

  2. Dan Zajdband

    View full-size slide

  3. zajdband.com.ar

    View full-size slide

  4. los-rayos.com.ar

    View full-size slide

  5. La filosofía de node

    View full-size slide

  6. “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

    View full-size slide

  7. require(‘http’)

    View full-size slide

  8. require(‘http’).createServer(function(req, res){
    res.writeHead(200, {‘Content-Type’: ‘text/plain’});
    res.end(‘Piojo Lopez\n’);
    }).listen(3000);

    View full-size slide

  9. npm install express

    View full-size slide

  10. • Powered by Connect
    • Middleware
    • Routing
    • HTTP helpers
    • Liviano
    • Soporta +14 template engines

    View full-size slide

  11. npm install -g express

    View full-size slide

  12. NODE_ENV=development

    View full-size slide

  13. lluvia de módulos

    View full-size slide

  14. • 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)

    View full-size slide

  15. • 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)

    View full-size slide

  16. client-side package manager

    View full-size slide

  17. • Componentes modulares
    • No solo para javascript
    • templates
    • Extensible
    • Resuelve dependencias
    • Rápido (mucho más que, por ejemplo, npm)

    View full-size slide

  18. follow @component_js

    View full-size slide