serverless-sam
Version:
Serverless framework plugin to export AWS SAM templates for a service
30 lines (20 loc) • 554 B
Markdown
<!--
title: GCF Simple HTTP Endpoint example in NodeJS
description: This example demonstrates how to setup a simple HTTP GET endpoint.
layout: Doc
-->
# Simple HTTP example
# Setup
1. Install Serverless with `npm install -g serverless`
2. Install the dependencies `npm install`
# Setting the credentials and project
Update the `credentials` and your `project` property in the `serverless.yml` file.
# Deployment
```
serverless deploy
```
You should see your functions URL endpoint after the deployment
# Invoking
```
curl <the-endpoint-url>
```