O'Reilly logo

DevOps for Serverless Applications by Shashikant Bangera

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A simple OpenWhisk application

Now let's create a simple service through the serverless Node.js template by going through the following steps:

  1. Create a new serverless service/project:
$ serverless create --template openwhisk-nodejs --path new-service 
  1. Change into the newly created directory:
$ cd new-service
  1. Install the npm dependencies:
$ npm install
  1. Once we finished, deploy the service and function to the Bluemix portal:
$ serverless deploy -v
  1. Then we invoke the function to check whether the function is deployed properly. Invoke the serverless application using the following code:
$ serverless invoke --function hello { "payload": "Hello, World!" }

In the preceding tutorial, we got the auth keys, created an action, and deployed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required