Writing a REST API with Hapi.js
Coming from a Python background, there were a couple of different solutions for web frameworks. Some were more of the “batteries included” persuasion, while others were extremely light weight and required you to piece together different libraries. Naturally there are two camps in this situation, those who trust in the monolithic frameworks to do all the heavy lifting and those who do not and want to include only small pieces that they choose.
But, I digress. Let’s take a look at one of, in my opinion, the latter frameworks - which is hapi. hapi is an open source project written by the super smart folks over at Walmart that defines it self as:
“hapi enables developers to focus on writing reusable application logic instead of spending time building infrastructure.”
Today we are going to build a simple blog REST API using the hapi framework and some other various libraries as well
Continue reading →