Skip to content

๐Ÿš€ "Go Serverless!" Example App to accompany the Conf42: Golang 2022 presentation

License

Notifications You must be signed in to change notification settings

elipZis/go-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Go Serverless!

An accompanying example project to the Conf42: Golang 2022 presentation by Savas Ziplies.

A scaffold to deploy Golang framework-driven Serverless functions to AWS.

Pre-requisites

Quickstart

To run/test locally:

  • Run docker-compose up -d timescaledb-postgis localstack
  • (Optional) Create a local queue in localstack for testing: aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name goserverless-queue-dev
  • Copy .env.example to .env
  • Run the single commands or deploy

Deploy

  • cd .build/aws
  • sam build
  • sam deploy --guided for a first time deployment

Running

  • The "api" cmd: go build github.com/elipzis/go-serverless/api
  • The "queue" cmd: go build github.com/elipzis/go-serverless/queue
  • The "web" cmd: go build github.com/elipzis/go-serverless/web

Tech Stack

The main tech stack contains of

Credits

Thanks

Thanks to Conf42 for having me :)

License

The MIT License (MIT). Please see License File for more information.

About

๐Ÿš€ "Go Serverless!" Example App to accompany the Conf42: Golang 2022 presentation

Topics

Resources

License

Stars

Watchers

Forks