Click here to load reader
Upload
srijan-technologies
View
2.316
Download
0
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
Transitioning from Express.js to Hapi.jsOr why is configuration better than code
Shobhit Bakliwal @shobhitic
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
ExpressJSBut..
!
•Feels awkward for creating large apps
•No clarity on its future
•Very hard to test
•Difficult to modularize and share functions
Hapi.js
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
Hapi.js
Bragging Rights
!
•100% code coverage
•Full-time dedicated team
•Great documentation
•Designed for Walmart scale
Some live examples…
Shobhit Bakliwal @shobhitic
Thank You!