1.1 KiB

Read this on the main serverless docs site

Quickstart

This guide is designed to help you get started as quick as possible.

1. Set up boilerplate

To setup the boilerplate, follow these instructions:

  1. Install the boilerplate
serverless install --url https://github.com/serverless/boilerplate-googlecloudfunctions-nodejs --name <my-service>
  1. Install the dependencies
cd <my-service>
npm install

2. Set up the credentials

Read through credentials doc to setup the credentials.

3. Deploy

Run the deploy command

serverless deploy

4. Invoke

Run the invoke command

serverless invoke --function first