MIT License

项目介绍

JKHeadley/rest-hapi 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 1.2k 个 Star、154 次 Fork。

仓库全名
JKHeadley/rest-hapi
开源许可证
MIT License
Star 数
1.2k
Fork 数
154
未关闭 Issue
76

README 摘要

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 Automatic generation of CRUD and association endpoints with middleware support joi validation Route-level and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

rest-hapi 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 1.2k 个 Star。

rest-hapi 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 rest-hapi 的源码?

可以直接克隆仓库:git clone https://github.com/JKHeadley/rest-hapi.git,默认分支为 master;安装与运行步骤见仓库 README。

rest-hapi 最近还在维护吗?

仓库最近一次更新为 2023年3月27日,当前有 76 个未关闭 Issue;Star 数为 1.2k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

🚀 A RESTful API generator for Node.js

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1526
价值分
753
活跃状态
活跃

语言占比

CSS
JavaScript
Shell

Release

README

rest-hapi logo


rest-hapi title

A RESTful API generator rest-hapi tweet

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.

评论

暂无评论