Skip to content

nodejs提供API,本项目基于hapi+mySQL.js为前端提供查询报表接口

License

Notifications You must be signed in to change notification settings

davecat/report-hapi

Repository files navigation

Build Status Dependencies Status DevDependencies Status

hapi-api

本项目基于hapi-api

The Goal

实现node.js来编写API,实践全栈式撸代码

Core Stack

Quick Start

Clone project and install dependencies:

$ git clone https://git.oschina.net/davemayun/report-hapi.git
$ cd report-hapi
$ npm install

Start the server:

$ npm start -s

Run tests:

$ npm test

Plugins

Project Structure

.
├── api/
|   ├── handlers/
|   |   └── home.js   * Sample handler
|   └── index.js      * REST routes
├── config/
|   ├── manifest.js   * Server configuration
|   └── secret.js     * Secret key
├── test/
|   └── api.js        * API test
├── server.js         * Server definition (uses the Glue plugin to read a manifest)
├── auth.js           * Auth strategies
└── package.json

License

Copyright (c) 2017 Dave

About

nodejs提供API,本项目基于hapi+mySQL.js为前端提供查询报表接口

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published