2.0.0 • Published 9 years ago
apeman-proto-proxy v2.0.0
apeman-proto-proxy
Prototype for project with proxy
Installation
$ npm install apeman-proto-proxy --save
Usage
/** This is an example Apemanfile.js */
'use strict'
module.exports = {
$ctx: {
// Rule for proxy
proxyRule: {
'^\/api\/': {
target: 'http://localhost:3001'
}
}
},
$pkg: { /* ... */ },
$proto: [
// Inherit apeman-proto-proxy project.
require('apeman-proto-proxy')
],
$tmpls: { /* ... */ },
$tasks: { /* ... */ }
}
Apemanfile Configurations
$pkg
Name | Value |
---|---|
name | apeman-proto-proxy |
version | 2.0.0 |
description | Prototype for project with proxy |
$proto
$apps
Name | Description |
---|---|
proxy:route | {"/":[]} |
$needs
Bin | How to install |
---|---|
apeman | npm install -g apeman |
License
This software is released under the MIT License.