mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Read this on the main serverless docs site
Hello World Node.js Example
Make sure serverless is installed and you have setup your credentials.
1. Create a service
serverless create --template google-nodejs --path my-service
2. Install Provider Plugin
npm install in the service directory.
3. Update the provider property
Update the credentials and your project property in the serverless.yml file.
4. Deploy
serverless deploy
5. Invoke deployed function
serverless invoke --function first
In your terminal window you should see a response from the Google Cloud
Congrats you have deployed and ran your Hello World function!