This book shows you how to build enterprise-quality web applications using the hapi service and application framework. By walking through the creation of a real web application, hapi-plugins.com, you will learn how to configure and start hapi, build out APIs, perform authentication, validation, caching, and so much more. You will also discover tips and tricks used in production hapi deployments regarding plugins, testing, debugging, and security. hapi was developed and is used within Walmart and has been battle tested during the most critical days of the year for e-commerce websites, Black Friday. It has proven itself to not only handle extremely high production loads at a breeze but is also a pleasure to work with. The aim of the framework was to address pitfalls in the other established out there, and it has done so without fail.
This book introduces hapi.js and walks through the creation of your first working application using the out-of-the-box features hapi.js provides. Packed with real-world problems and examples, this book covers some of the basic concepts of hapi.js and Node.js and takes you through the typical journey you'll face when developing an application. Starting with easier concepts such as routing requests, building APIs serving JSON, using templates to build websites and applications, and connecting databases, we then move on to more complex problems such as authentication, model validation, caching, and techniques for structuring your codebase to scale gracefully. You will also develop skills to ensure your application's reliability through testing, code coverage, and logging. By the end of this book, you'll be equipped with all the skills you need to build your first fully featured application. This book will be invaluable if you are investigating Node.js frameworks or planning on using hapi.js in your next project.
Packed with examples, this book takes you from your first simple server through the skills you'll need to build a complete application. In it, you'll learn how to build websites and APIs, implement caching, authentication, validation, error handling, and a lot more. You'll also explore vital techniques for production applications, such as testing, monitoring, deployment, and documentation.
This handbook is a collection of tutorials for Hapi.js framework. You can find tutorials about validation, working with 3rd plugins, sending/getting data, template engines, integrations with DB and etc.
Simple node.js code style tips to improve code quality
Plugin example of rate limiting and DDoS protection with rate-limiter-flexible package
An insight into how hapi.js is used at Walmart
A user system leveraging rest-hapi to bootstrap your app.
A website and user system. Implemented with React and Flux.
A user system API. Bring your own front-end.
Yeoman generator for hapi web services.
Yeoman generator for scaffolding hapi apps and plugins.
Full-stack boilerplate with Node.js, hapi, PostgreSQL and AngularJS (MEAN.js port)
Angular2 Quickstart example wrapped into a Hapi plugin.
Lean hapi API Boilerplate with an opinionated view on project structure
Boilerplate for hapi with mongodb, mongoose. Work with Hapi V17.
A boilerplate hapi web and API server example, with frontend dashboard
Opinionated hapi.js (V >= 17) Server Boilerplate
Boilerplate hapi server example. Node.js, hapi, and Swig.
A hapi React Starter kit with react-router, redux, react-transform.
Hapi.js based REST boilerplate which uses latest ES7/ES8 features (async/await) with code coverage and follows best pratices
Simple Hapi server boilerplate with user authentication (MongoDB)
A TodoMVC jQuery front-end with a Hapi back-end.
Production ready boilerplate for hapi.js
Boilerplate hapi Server with Facebook and React
A friendly, proven starting place for your next hapi plugin or deployment
A RESTful API generator built around the hapi framework and mongoose ODM.
frontend stack for hapi (server, api) and Angular (client)
Hapi Server running on OpenShift/local backed by MongoDB & Redis - Performance Tested with BlazeMeter & JMeter
A Boilerplate that help you to create fast project with Hapi + MongoDB
Hapi API Server with Swagger Docs, Testing and Travis CI
A TypeScript based boilerplate for HAPIJS with TypeORM & Dynamic Linting
A HTML5 multiplayer game, based on the popular board game "Catan" by Klaus Teuber.
Scalable API Server framework build on top of Hapi and Sequelize.
Worker payments dashboard for MGNREGA, India's employment guarantee programme.
Postmile is a collaborative list making tool built using hapi.js, Node.js, and MongoDB.
Article on how to secure your hapi application.
Tutorial about how to create a basic RESTful API with MongoDB as database using the mongojs module.
Real-time chat application built using hapi.js, Socket.io and Redis Pub/Sub with end-to-end tests.
In celebration of hapi plugin boundaries, here we offer a concrete approach to taming inter-plugin dependencies.
This in-depth tutorial series on hapi covers route setup, authentication, plugins, request & response handling, and much more.
A growing list of tutorials covering hapi.js application development, deployment, optimization, and production management (scaling, monitoring, etc.).
Tutorial about how to create a RESTful API with the Plugins Dogwater (Waterline ORM) and Bedwetter.
The joyful act of decoupling your application plugin from its deployment will make your hapi app more portable and simpler to test.
A tutorial that shows how to build a realtime timeline with the nes plugin for hapi.
Tutorial and cloneable sample app showing how to create and deploy a hapi.js application on Google App Engine.
Playground project for authentication with Twitter using the bell plugin and hapi-auth-cookie.
Tutorial on how to integrate Socket.io with hapi.js