All Projects → AMoreaux → hapi-cli

AMoreaux / hapi-cli

Licence: MIT license
CLI to build API with Hapi, mongodb and mongoose. Work with Hapi V17.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hapi-cli

nodejs-tutorials-hapi
Examples for the hapi tutorial series within the Future Studio University
Stars: ✭ 70 (+94.44%)
Mutual labels:  hapi, hapijs
hapi-now-auth
Hapi token auth for bearer and jwt
Stars: ✭ 43 (+19.44%)
Mutual labels:  hapi, hapijs
good-sentry
Sentry broadcasting for good process monitor
Stars: ✭ 15 (-58.33%)
Mutual labels:  hapi, hapijs
hapi-moon
Hassle-free and production ready hapi.js Server boilerplate
Stars: ✭ 23 (-36.11%)
Mutual labels:  hapi, hapijs
hapi-plugin-mysql
Hapi plugin for MySQL
Stars: ✭ 17 (-52.78%)
Mutual labels:  hapi, hapijs
Crashlyzer
Crash viewer web application for displaying the crashes reported by rn-crash-reporter components from React Native mobile applications.
Stars: ✭ 59 (+63.89%)
Mutual labels:  hapi, hapijs
typesafe-hapi
Typechecking for HapiJS based on Joi schemas!
Stars: ✭ 21 (-41.67%)
Mutual labels:  hapi, hapijs
hapi-good-winston
A good reporter to send and log events with winston
Stars: ✭ 21 (-41.67%)
Mutual labels:  hapi, hapijs
sapper-authentication-demo
A demonstration of Auth with Sapper + JWT + Server Side Rendering + RBAC
Stars: ✭ 102 (+183.33%)
Mutual labels:  hapi, hapijs
kubernetes-starterkit
A launchpad for developers to learn Kubernetes from scratch and deployment of microservices on a kubernetes cluster.
Stars: ✭ 39 (+8.33%)
Mutual labels:  hapijs
hapi-routes
Hapi plugin for registering routes
Stars: ✭ 12 (-66.67%)
Mutual labels:  hapijs
hapi-docs
Beautiful API documentation generator for Hapi using Vue
Stars: ✭ 64 (+77.78%)
Mutual labels:  hapi
hapi-doorkeeper
User authentication for web servers
Stars: ✭ 14 (-61.11%)
Mutual labels:  hapi
minimal-hapi-react-webpack
Minimal Hapi + React + Webpack + HMR (hot module reloading) Sandbox
Stars: ✭ 55 (+52.78%)
Mutual labels:  hapi
Hapi React Views
📦 A hapi view engine for React components
Stars: ✭ 234 (+550%)
Mutual labels:  hapi
Inert
Static file and directory handlers for hapi.js
Stars: ✭ 236 (+555.56%)
Mutual labels:  hapi
felicity
Javascript object constructors and sample data based on Joi schema.
Stars: ✭ 107 (+197.22%)
Mutual labels:  hapi
noire-server
Hapi Boilerplate
Stars: ✭ 20 (-44.44%)
Mutual labels:  hapi
hapi-statsd
A hapi plugin for sending request round trip metrics to statsd
Stars: ✭ 29 (-19.44%)
Mutual labels:  hapi
BiB
📚 Library Management Application for Elementary Schools
Stars: ✭ 38 (+5.56%)
Mutual labels:  hapijs

CircleCI NPM Downloads Coverage Status Known Vulnerabilities Dependency Status devDependency Status License

Hapi-cli generator

Files structure

project/
├── app.js
├── config/
│   ├── default.json
│   └── production.json
├── controllers/
│   └── user.controller.js
├── models/
│   └── user.model.js
├── policies/
│   ├── admin.policy.js
│   └── default.policy.js
├── routes/
│   ├── base.route.js
│   └── user.route.js
└── services/
    ├── utils/
    │   ├── db.js
    │   └── utils.js
    └── hashPassword.service.js

Installation

npm install -g hapi-starter

Create project

hapi-cli new [project-name]

cd [project-name]

npm start

Create model

hapi-cli generate model [name] [options]

Options

--properties | -p : List of properties of your entitie. (format: [name]:[type])

Examples

hapi-cli generate model room --properties size:number,name:string

Create controller

hapi-cli generate controller [name] [options]

Options

--methods | -m : List of methods for your controller (default: create,remove,find,update )

Examples

hapi-cli generate controller room
hapi-cli generate controller room --methods create,remove

Create Route

hapi-cli generate route [name] [options]

Options

--verbs | -v : List of endpoints for your route (default: get,post,delete,put )
--controller | -c : Name of controller. (default: file's name )

Examples

hapi-cli generate route room
hapi-cli generate route room --verbs get,post

Create API

hapi-cli generate api [name] [options]

Options

--verbs | -v : List of endpoints for your route (default: get,post,delete,put )
--controller | -c : Name of controller. (default: file's name )
--methods | -m : List of methods for your controller (default: create,remove,find,update )
--properties | -p : List of properties of your entitie. (format: [name]:[type])

Example

hapi-cli generate api owner

project

TODO

If you'd like the cli to do something that it doesn't do or want to report a bug please use the github issue tracker on github

fork / patches / pull requests

You are very welcome to send patches or pull requests

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].