Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Hello World Node.js Example

Make sure serverless is installed. See installation guide.

1. Create a service

serverless install --url https://github.com/azure/boilerplate-azurefunctions --name my-app

2. Install Provider Plugin

npm install -g serverless-azure 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 azure

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

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