https://github.com/cafjs/caf_sim
OBSOLETE! use caf/extra/caf_netproxy instead. CAF extra lib to simulate Cloud Foundry http router (for debugging)
https://github.com/cafjs/caf_sim
Last synced: 5 months ago
JSON representation
OBSOLETE! use caf/extra/caf_netproxy instead. CAF extra lib to simulate Cloud Foundry http router (for debugging)
- Host: GitHub
- URL: https://github.com/cafjs/caf_sim
- Owner: cafjs
- Created: 2013-01-14T03:21:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-10-26T21:14:21.000Z (over 11 years ago)
- Last Synced: 2025-08-09T02:49:41.128Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
# CAF (Cloud Assistant Framework)
Co-design permanent, active, stateful, reliable cloud proxies with your web app.
See http://www.cafjs.com
## CAF Extra standalone simulator
*** THIS IS OBSOLETE, THERE IS NO NEED FOR A SIMULATOR TO RUN LOCALLY**
This repository contains a CAF extra lib that simulates the Cloud Foundry http router.
The goal is to run CAF standalone, in a single node without CF, for the purpose of debugging.
See http:/www.cafjs.com/standalone.html
## API
start.js 4000 localhost 3000
where 4000 is the new local port, localhost is where your CAF server will run, and 3000 is the port that this server is listening to (defaults to 3000 but it can be changed in `framework.json` as follows:
{
"module": "plug_cloudfoundry",
"name": "cf",
"description": "Enables access to config properties provided by Cloud Foundry",
"env": {
"port" : 3001
}
},
After starting your app locally, your service URL is:
http://appname.vcap.me:4000/app.html
where `vcap.me` is always resolved to `localhost`.
## Configuration Example
### framework.json
None
### ca.json
None