Alex succeed at dating boot camp

(also known as hapi) is an open-source framework for web applications.

The most common use of hapi is to build web services such as JSON API.

You can build application programming interface (API) servers, websites, and HTTP proxy applications with

Hapi simplified the way in which developers write highly scalable APIs.

It is powerful and feature-rich framework with solid architecture.

If you are new to hapi.js, I suggest you read my previous introduction article.

A REST(Representational State Transfer) is an application program interface(API) that uses HTTP requests to GET, PUT, POST and DELETE data.

A RESTful API—also referred to as a RESTful web service—is based on representational state transfer (REST) technology, an architectural style and approach to communications often used in web services development.

Some examples are Routing, Plugins, Logging, HTTP interface, Error Handling, etc. Hapi encapsulates the request and response object of HTTP request. Let me show you how you can create APIS in and mongoose First of all, I am going to show you how to install Npm init will create a new file in the root directory of your application.

You can install hapi on your local machine by using the npm install command.

Npm(Node Package Manager) will grab the hapi package from the repository and save it to your local node_modules init — yes npm install — First of all, we need to create a new local server in

Hapi allows you to create a new instance of the server from the hapi. You can configure hapi server on a local machine by providing the host and port configuration.

You must start the server by using the server.start method.

If something goes wrong while starting the server it will throw this error: You can run hapi application on your local machine by executing this command:node If the server started successfully, then you will see this message on your terminal or command prompt: Server Running at PORT 3000I am going to use Mongo DB database to store my company’s record.

You must have an account to comment. Please register or login here!