rest-hapi

? A RESTful API generator for Node.js

Github星跟蹤圖

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

rest-hapi-demo-optimized

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

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

http://localhost:8080/

...have fun!

Example Projects

appy: A boilerplate web app.

rest-hapi-demo: A simple demo project implementing rest-hapi in a hapi server.

Contributing

We welcome contributions to rest-hapi! These are the many ways you can help:

Please read our contribution guide to get started. Also note
that this project is released with a
Contributor Code of Conduct, please make sure to review
and follow it.

Contributors

Thanks goes to each one of our contributors! ?

Become a contributor.

Backers

Support us with a monthly donation and help us continue our activities!
Become a backer.

Questions?

If you have any questions/issues/feature requests, please feel free to open an issue. We'd love to hear from you!

Support

Like this project? Please star it!

License

rest-hapi is licensed under a MIT License.

主要指標

概覽
名稱與所有者JKHeadley/rest-hapi
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2016-10-30 01:21:20
推送於2023-03-26 17:51:24
最后一次提交2022-12-27 13:46:15
發布數195
最新版本名稱v3.2.0 (發布於 2022-12-27 15:18:16)
第一版名稱v0.1.0 (發布於 )
用户参与
星數1.2k
關注者數40
派生數153
提交數1.2k
已啟用問題?
問題數151
打開的問題數65
拉請求數96
打開的拉請求數11
關閉的拉請求數59
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?