2017-05-17 11:19:46 +02:00

51 lines
953 B
Markdown

<!--
title: Serverless Framework - Google Cloud Functions Guide - Quick Start
menuText: Quick Start
menuOrder: 2
description: Get started with Google Cloud Functions in 5 minutes or less
layout: Doc
-->
# Google - Quick Start
This guide is designed to help you get started as quick as possible.
## 1. Create a new service
1. Create a new service with the `google-nodejs` template
```bash
serverless create --template google-nodejs --path my-service
```
2. Install the dependencies
```bash
cd my-service
npm install
```
## 2. Set up the credentials
Read through [credentials doc](./credentials.md) to setup the credentials.
## 3. Update `serverlesss.yml`
Update the `project` and `credentials` in your projects `serverless.yml`
## 4. Deploy
Run the [deploy command](../cli-reference/deploy.md)
```bash
serverless deploy
```
## 5. Invoke
Run the [invoke command](../cli-reference/invoke.md)
```bash
serverless invoke --function first
```