VT2017 Serverless Architectures Demo
Revision as of 09:53, 15 September 2017 by Antoine.Boisadam (talk | contribs)
Prerequis
- Un compte IBM Bluemix avec IBM Function activé : https://console.bluemix.net/openwhisk
- La CLI IBM OpenWhisk : https://console.bluemix.net/openwhisk/learn/cli
Demo
Hello.js:
1function main(params) {
2 return {payload: 'Hello ' + params.name};
3}
Then in your terminal:
bx wsk action create hello hello.js --web true
bx wsk api create /hello GET hello