Node.js as a server using Hapi framework
I have been wanting to dive into node.js for a while and I finally did this week. Using Hapi as a framework I was able to start up a simple server for static files.
The documentation on the happy site is easy to follow and concise, so as to not regurgitate Hapi. Super simple to get started and not as complex as some other node.js server packages.
Don’t name your new directory hapi, or you will end up trying to make hapi a dependency or itself … woops
This is super exciting stuff for front end developers, so try it!
Here is my index.js file, that would serve up index.html on http://localhost:8080/
This page could run without my apache server, however this server does not have the google’s V8 engine installed.
So check out Hapi to get up and running with a node server quickly and easily