serverless/

directory
v0.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2019 License: BSD-3-Clause

README

This repository contains template for deploying serverless apps, using the Serverless framework, built with the Go API of Project Flogo.

Building this app

  1. Create a new service based on this template from the same folder as your flogo.json file
serverless create -u https://github.com/tibcosoftware/flogo/tree/master/serverless -p myservice
  1. Run make in the myservice directory

  2. Run make deploy to deploy your app to AWS Lambda. The response will look like something below

...
Service Information
service: myservice
stage: dev
region: us-east-1
stack: myservice-dev
api keys:
  None
endpoints:
  GET - https://xxx.execute-api.us-east-1.amazonaws.com/dev/hello
functions:
  hello: myservice-dev-hello
...
  1. Test your API using cURL
curl --request GET --url https://xxx.execute-api.us-east-1.amazonaws.com/dev/hello --header 'content-type: application/json'

More information

If you're looking for a more in-depth overview of how the app is built, check out the lab

Special note, this unfortunately only works under Linux or macOS systems or when using the Windows Subsystem for Linux (WSL). This is because Windows developers may have trouble producing a zip file that marks the binary as exectuable on Linux (see also here).

Directories

Path Synopsis
Package main implements the main logic of the function
Package main implements the main logic of the function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL