Skip to content

nerney/serverless-rest-golang

Repository files navigation

Serverless Golang REST Endpoint

Build Status Test Coverage Go Report Card

Goals

The goal here is to acheive a fully serverless REST endpoint. By "fully serverless", I mean that there are no servers continually running or database resources provisioned.

This is accomplished through a single lambda function that handles crud methods (GET,POST,PUT,DELETE). The serverless environment uses an in-memory cache for holding the data, but ultimately, I would like to have changes immediately synced to s3.

Requirements

  • Node.js
  • Golang

Deploying

Deploy Status

Deploying this service to an AWS environment can be accomplished in more than one way:

  • From your local machine, it will deploy using your locally configured AWS credentials.
  • From AWS CodeBuild, using the default buildspec.yml

Scripts

# installs dependencies
sh scripts/install.sh

# runs tests with coverage
sh scripts/test.sh
open coverage.html # (optional: view the coverage report)

# builds the application
sh scripts/build.sh

# deploy the application with serverless
sh scripts/install.sh

MORE TO COME...

About

Serverless Golang REST Endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published