James Thomas 7c5c1a0924 Removing AWS references.
There were some remaining AWS references caught during code reivew.
2017-01-27 10:17:28 +00:00
..
2017-01-24 14:15:27 +00:00
2017-01-24 14:15:27 +00:00
2017-01-27 10:17:28 +00:00
2017-01-27 10:17:28 +00:00

Read this on the main serverless docs site

Hello World Node.js Example

Make sure serverless is installed. See installation guide.

1. Create a service

serverless create --template openwhisk-nodejs --path myService or sls create --template openwhisk-nodejs --path myService, where 'myService' is a new folder to be created with template service files. Change directories into this new folder.

2. Install Provider Plugin

npm install -g serverless-openwhisk followed by npm install in the service directory.

3. Deploy

serverless deploy or sls deploy. sls is shorthand for the Serverless CLI command

4. Invoke deployed function

serverless invoke --function helloWorld or serverless invoke -f helloWorld

-f is shorthand for --function

In your terminal window you should see the response from Apache OpenWhisk

{
    "payload": "Hello, World!"
}

Congrats you have just deployed and run your Hello World function!