GithubHelp home page GithubHelp logo

hapi's Introduction

A rich framework for building web applications and services. hapi is a simple to use configuration-centric framework with built-in support for input validation, caching, authentication, and other essential facilities. hapi enables developers to focus on writing reusable application logic instead of spending time building infrastructure. The framework supports a powerful plugin architecture for pain-free and scalable extensibility.

For the latest updates and release information follow @hapijs on twitter.

Current version: 1.14.x

Node version: 0.10 required

Build Status

NPM

Getting started

Start by creating a package.json:

npm init

Install hapi and have it saved to your package.json dependencies:

npm install hapi --save

Create an 'index.js' file and with the following contents:

var Hapi = require('hapi');

// Create a server with a host and port
var server = Hapi.createServer('localhost', 8000);

// Add the route
server.route({
    method: 'GET',
    path: '/hello',
    handler: function () {

        this.reply('hello world');
    }
});

// Start the server
server.start();

Launch the application (node .) and open 'http://localhost:8000/hello' in a browser.

More information

  • For the latest updates follow @hapijs.
  • For more information, tutorials, and references on the currently published version, visit hapijs.com
  • Information about the work-in-progress in the master branch:
  • For discussions join the #hapi channel on irc.freenode.net
  • Any issues or questions (no matter how basic), open an issue.

hapi's People

Contributors

ajoslin avatar atomless avatar bmille29 avatar bruderstein avatar cbebry avatar dacbd avatar dalmaer avatar dannycoates avatar dguzzo avatar dpedley avatar fmarier avatar geek avatar hatchan avatar iamdoron avatar joaojeronimo avatar maoyang avatar mathieuloutre avatar mcandre avatar mikeal avatar nlf avatar nvcexploder avatar paullang avatar pborreli avatar philbooth avatar rvagg avatar thegoleffect avatar thesillyhippo avatar tillre avatar wolfeidau avatar zaach avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.