Total Pageviews

Saturday, 11 July 2020

rest-hapi

A RESTful API generator based on Node.js
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


rest-hapi is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial!
GitAds

Live demo

rest-hapi-demo-optimized
View the swagger docs for the live demo:
Or, for a more complete example, check out the appy api:

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

rest-hapi-demo-alt-optimized
(NOTE: For an alternative quick start, check out his awesome yeoman generator for rest-hapi.)
  1. Clone the demo repo
$ git clone https://github.com/JKHeadley/rest-hapi-demo.git
$ cd rest-hapi-demo
  1. Install the dependencies
$ npm install
  1. Seed the models
$ ./node_modules/.bin/rest-hapi-cli seed
  1. Start the server
$ npm start
  1. View the API docs at
...have fun!

Example Projects

appy: A boilerplate web app.
rest-hapi-demo: A simple demo project implementing rest-hapi in a hapi server.
from https://github.com/JKHeadley/rest-hapi
-----

The Simple, Secure Framework Developers Trust.

The hapi project is changing direction... Find out more.

@hapi/hapi

The Simple, Secure Framework Developers Trust

Build powerful, scalable applications, with minimal overhead and full out-of-the-box functionality - your code, your way.

Visit the hapi.dev Developer Portal for tutorials, documentation, and support

Useful resources


No comments:

Post a Comment