Skip to content

Commit

Permalink
Merge pull request #1 from dudash/master
Browse files Browse the repository at this point in the history
Updates for latest WMATA key
  • Loading branch information
dudash committed Aug 14, 2017
2 parents 8d25963 + 2749817 commit 7eea294
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# openshift-workshops
Don't just read about what OpenShift 3 can do - try it for yourself with [these workshops][1]

[1]: http://dudash.github.io/openshift-workshops/
[1]: http://redhatgov.io/workshops/openshift_101_dcmetromap/


## Note: the source code & issue tracking for workshop has moved to RedHatGov. Please redirect yourself to:
https://github.com/RedHatGov/redhatgov.github.io/tree/docs/content/workshops/openshift_101_dcmetromap

5 changes: 4 additions & 1 deletion dc-metro-map/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ A simple example of a node.js + mapbox web application configured to run on Red
![Screenshot](./.screens/2016-03-30_2135.png?raw=true)

## How can I run this?
This app is configured to be deployed and managed via OpenShift. Which means all you'll need to do is click a few buttons and specify some settings.
This app is configured to be deployed and managed via OpenShift. Which means all you'll need to do is click a few buttons and specify some settings. [Here is a link to a lab][5] that walks you through that process.

For more general instructions on OpenShift:
* If you are using OpenShift Online, [follow instructions here][1]
* If you have OpenShift Enterprise, [follow instructions here][2]
* If you are using this as part of a Red Hat workshop, follow the provided instructions instead
Expand All @@ -22,3 +24,4 @@ Under the terms of the [MIT][4].
[2]: https://docs.openshift.com/enterprise/latest/welcome/index.html
[3]: https://docs.openshift.org/latest/using_images/s2i_images/nodejs.html
[4]: https://opensource.org/licenses/MIT
[5]: http://redhatgov.io/workshops/openshift_101_dcmetromap/lab3-s2i/
2 changes: 1 addition & 1 deletion dc-metro-map/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var rest = require('restler');
//-----------------------------------------------------------------------------
// CONSTANTS AND HELPERS
//-----------------------------------------------------------------------------
var API_KEY_PLACEHOLDER = process.env.WMATA_API_KEY || '6b700f7ea9db408e9745c207da7ca827';
var API_KEY_PLACEHOLDER = process.env.WMATA_API_KEY || 'e1eee2b5677f408da40af8480a5fd5a8';
var BEERME = process.env.BEERME || false;
var RAINBOW = process.env.RAINBOW || false;
console.log("using WMATA API Key - " + API_KEY_PLACEHOLDER);
Expand Down
2 changes: 1 addition & 1 deletion dc-metro-map/views/dcmetro.jade
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ block content
//- // you could do something with the map layer here
//- });
window.setTimeout(function() { busFeatureLayer.loadURL('/busses.json') }, 10000); // update every 10 seconds
}
}

0 comments on commit 7eea294

Please sign in to comment.