JSPM

happi

0.9.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q40788F
  • License MIT

Happi-based Web API Framework

Package Exports

  • happi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (happi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

happijs

Happi-based Web API Framework

Installation

After nodejs installed:

# Get the latest stable release of Happi
$ npm install happi -g

Your First Happi Project

Create a new app:

# Create the app
$ happi new testProject

Run the app:

# cd into the new folder
$ cd testProject

# fire up the server
$ happi run

Generate a REST API:

# Generate new api
$ hapi generate api user

# Result
# ./api/models/User.js
# ./api/controllers/UserController.js
# ./api/services/UserService.js

# Generate individual components
$ happi generate [controller, model, service, apdapter, policy, response, config] << component name >>

# [[** Project structure **]]
# ./api/models
# ./api/controllers
# ./api/services
# ./api/policies
# ./api/responses
# ./api/config

Compatibility

Happi is built on Node.js v6.x, Express v4.x, and Socket.io v1.x.