Merge branch 'master' of github.com:nasa/openmct into open967

This commit is contained in:
David Hudson 2016-09-02 02:44:01 +09:00
commit a8900f3d6d
2 changed files with 23 additions and 3 deletions

View File

@ -36,6 +36,22 @@ Open MCT is now running, and can be accessed by pointing a web browser at [http:
Documentation is available on the [Open MCT website](https://nasa.github.io/openmct/documentation/). The documentation can also be built locally.
### Examples
The clearest examples for developing Open MCT plugins are in the
[tutorials](https://nasa.github.io/openmct/docs/tutorials/) provided in
our documentation.
For a practical example of a telemetry adapter, see David Hudson's
[Kerbal Space Program plugin](https://github.com/hudsonfoo/kerbal-openmct),
which allows [Kerbal Space Program](https://kerbalspaceprogram.com) players
to build and use displays for their own missions in Open MCT.
Additional examples are available in the `examples` hierarchy of this
repository; however, be aware that these examples are
[not fully-documented](https://github.com/nasa/openmct/issues/846), so
the tutorials will likely serve as a better starting point.
### Building the Open MCT Documentation Locally
Open MCT's documentation is generated by an
[npm](https://www.npmjs.com/)-based build. It has additional dependencies that

10
app.js
View File

@ -67,10 +67,14 @@
});
app.use('/proxyUrl', function proxyRequest(req, res, next) {
console.log('Proxying request to: ', req.query.url);
var targetUrl = req.query.url;
var queryParameters = req.query;
console.log('Proxying request to: ', targetUrl);
delete queryParameters['url'];
req.pipe(request({
url: req.query.url,
strictSSL: false
url: targetUrl,
strictSSL: false,
qs: queryParameters
}).on('error', next)).pipe(res);
});