4.0.0 • Published 9 years ago
apeman-proto-rest v4.0.0
apeman-proto-rest
Prototype for project with RESTful API
Installation
$ npm install apeman-proto-rest --saveUsage
/** This is an example Apemanfile.js */
'use strict'
module.exports = {
$ctx: {
/** Routes for Rest */
restRoutes: {
'/user': require('./routes/user_route'),
'/article': require('./routes/article_route')
}
},
$pkg: { /* ... */ },
$proto: [
// Inherit apeman-proto-rest project.
require('apeman-proto-rest')
],
$tmpls: { /* ... */ },
$tasks: { /* ... */ }
}Apemanfile Configurations
$pkg
| Name | Value |
|---|---|
| name | apeman-proto-rest |
| version | 4.0.0 |
| description | Prototype for project with RESTful API |
$proto
$apps
| Name | Description |
|---|---|
| rest:route | {} |
| rest:setup | {"/":null,null,null} |
$needs
| Bin | How to install |
|---|---|
| apeman | npm install -g apeman |
License
This software is released under the MIT License.