How to Enable Cross Origin Access Control in Hapi.JS

To enable CORS - Cross-Origin Resource Sharing, Access-Control-Allow-Origin and Access-Control-Allow-Credentials for all routes in Hapi.JS

How to make redirect 301 in Hapi.js

server.route({ method: 'GET', path: '/redirect', handler: (request, reply) { return reply.redirect('https://morioh.com').code(301); } }); // or server.route({ method: 'GET', path: '/permanent', handler:...

Developing Modern APIs with Hapi.js, Node.js, and Redis

Learn how to develop odern backend APIs with Hapi.js, Node.js, and Redis.

Using Hapi.js, Mongoose, And MongoDB To Build A REST API

In this tutorial we’re going to develop a simple RESTful API using Hapi.js, Joi and Mongoose as the backend framework, and MongoDB as the NoSQL database. Rather than just using Hapi.js as a drop in framework replacement, I wanted to improve upon what we had previously seen, by simplifying functions and validating client provided data.

How to set-up a powerful API with Nodejs, GraphQL, MongoDB, Hapi, and Swagger

Separating your frontend and backend has many advantages: