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

The stack behind Flipkart Lite | Modern Web Summit

The stack behind Flipkart Lite | Modern Web Summit

Talk by me on "The Stack behind Flipkart Lite" @ Modern Web Summit ( Feb 4, 2016 ).

Boopathi Rajaa

February 04, 2016
Tweet

More Decks by Boopathi Rajaa

Other Decks in Programming

Transcript

  1. Modern Web Summit CLIENT SIDE ONLY SERVER SIDE RENDERING HTML

    PAGE SHELLS SHELLS +
 SERVICE WORKERS response rendering starts
  2. Modern Web Summit function convertParams(p) { return PathUtils.injectParams(p, { splat:

    'splat', slug: 'slug', itemId: 'itemId', sellerName: 'sellerName', sellerId: 'sellerId' }); } Hackity Hack Hack
  3. Modern Web Summit Route Defined Route To Render Shell /:slug/p/:itemid

    → /slug/p/itemId → product /(.*)/pr → /splat/pr → browse /search → /search → search /accounts/(.*) → /accounts/splat → accounts injectParams
  4. Modern Web Summit vendor.config.js react, react-router, phrontend, etc… client.config.js client.js

    → routes.js → root server.config.js server.js → routes.js → root hbs.config.js hbs-loader → hbs.bundle.js → <shell>.hbs sw.config.js sw.js + build props from client & vendor
  5. Modern Web Summit index.hbs browse.hbs product.hbs search.hbs accounts.hbs build time

    render React.renderToString() hbs-loader /:slug/p/:itemid /(.*)/pr /search /accounts/(.*) runtime - express js