NCdevcon Demo
JavaScript TypeScript CSS HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode/typings
app
hooks
resources
typings
www
.editorconfig
.gitignore
README.md
config.xml
gulpfile.js
ionic.config.json
package.json
tsconfig.json
tslint.json
typings.json

README.md

Intro Ionic 2/Angular2 Demo for NCDevcon 2016 (Sept 17-18)

Slides bit.ly/ionic-ncdevcon16

Running demo

Install stuff

npm install -g ionic@beta cordova ios-deploy

Run App in browser

ionic serve --lab

Run App in Android

ionic platform add android
ionic run android

Run App in iOS

ionic platform add android
open platforms/ios/*.xcodeproj

Use Select Play button and select a Simulator or a Device attached via USB

Serverless Support

You can use this App using OpenWhisk Serveless action

First deploy your Severless function searchVideo

Then enter the configuration into the Serverless service serverless-service.ts

// Use the wsk cli to get this values with `wsk property get`
const API_HOST = "<REPLACE ME>"  //if running locally use your OpenWhisk host instead of bluemix.net
const API_KEY =  window.btoa('<REPLACE ME>');
const API_NAMESPACE = "<REPLACE ME>"
// The Severless Function name get this value with  `wsk action list`
const API_ACTION = "searchVideoAction"

And lastly change the home.ts

const useServerless = true;