Difference between revisions of "VT2017 Serverless Architectures Demo"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | === 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:''' |
'''Hello.js:''' |
||
<source lang="javascript" line start="1"> |
<source lang="javascript" line start="1"> |
Revision as of 09:53, 15 September 2017
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