This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove scala-library scala | |
sudo wget www.scala-lang.org/files/archive/scala-2.10.4.deb | |
sudo dpkg -i scala-2.10.4.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.deb | |
sudo dpkg -i sbt.deb | |
sudo apt-get update | |
sudo apt-get install sbt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cf push ibm-sso-nodejs-sample -n ibm-sso-nodejs-$RANDOM -c 'node main.js' | |
Updating app ibm-sso-nodejs-sample in org <your org> / space dev as <your userid>... | |
OK | |
Creating route ibm-sso-nodejs-16133.ng.bluemix.net... | |
OK | |
Binding ibm-sso-nodejs-16133.ng.bluemix.net to ibm-sso-nodejs-sample... | |
OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed under the Apache License. See footer for details. | |
var express = require('express'); | |
var passport = require('passport'); | |
var app = express(); | |
var bodyParser = require('body-parser'); | |
app.use(bodyParser()); | |
var cookieParser = require('cookie-parser'); | |
app.use(cookieParser()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"express": "4.x", | |
"express-session": "1.0.2", | |
"body-parser": "1.0.1", | |
"cookie-parser": "1.0.1", | |
"passport": "0.2.0", | |
"passport-oauth": "1.0.0", | |
NewerOlder