8

Click here to load reader

[Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Embed Size (px)

DESCRIPTION

NodeJS is a great platform which is taking the technology world by storm. But a lot of developers are in a dilemma when it comes to selecting a framework for development and always end up choosing Express.js, mostly because of its popularity. In this webinar, our speaker introduced the participants to an alternative framework called Hapi.js and dived into the subtle differences between the two popular frameworks in Nodeland. He also shared live examples to show what makes HapiJS a great choice for development, and how should one go about writing a maintainable code in Node, which scales in enterprise environments and under crazy web loads. Watch our webinar video: http://goo.gl/G2SNMV

Citation preview

Page 1: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Transitioning from Express.js to Hapi.jsOr why is configuration better than code

Shobhit Bakliwal @shobhitic

Page 2: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

ExpressJSThe good parts

!

•Very easy to get started

•No configuration code required

•Actively maintained for a long time

•Great for new developers to jump right in

Page 3: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

ExpressJSBut..

!

•Feels awkward for creating large apps

•No clarity on its future

•Very hard to test

•Difficult to modularize and share functions

Page 4: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Hapi.js

Page 5: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Hapi.js!

•Created around the idea that configuration is

better than code

•Configuration is shareable among routes

•Write business logic with full confidence

•Makes it very easy to test routes

Page 6: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Hapi.js

Bragging Rights

!

•100% code coverage

•Full-time dedicated team

•Great documentation

•Designed for Walmart scale

Page 7: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Some live examples…

Page 8: [Srijan Wednesday Webinars] Transitioning from ExpressJS to HapiJS

Shobhit Bakliwal @shobhitic

Thank You!