Scalio

Rest Hapi

RESTful API generator for HapiJS

Rest Hapi


A RESTful API generator
rest-hapi is a hapi plugin that generates RESTful API endpoints based on mongoose schemas. It provides a powerful combination of relational structure with NoSQL flexibility. You define your data models and the rest is done for you. Have your API up and running in minutes!

Features

Live demo
View the swagger docs for the live demo:
https://demo.resthapi.com

Or, for a more complete example, check out the appy api:
https://api.appyapp.io

Documentation
Check out the docs on the official site!

Requirements
You need Node.js installed and you'll need MongoDB installed and running.


Quick Start
(NOTE: For an alternative quick start, check out his awesome yeoman generator for rest-hapi.)

Clone the demo repo
$ git clone https://github.com/JKHeadley/rest-hapi-demo.git
$ cd rest-hapi-demo

Install the dependencies
$ npm install

Seed the models
$ ./node_modules/.bin/rest-hapi-cli seed

Start the server
$ npm start


View the API docs at
localhost:8080


Example Projects
appy: A boilerplate web app.
rest-hapi-demo: A simple demo project implementing rest-hapi in a hapi server.

Repository Information

You can view this repository on GitHub here:
https://github.com/JKHeadley/rest-hapi



How can we help you?