serverless-rest-golang

command module
v0.0.0-...-79ec17b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: MIT Imports: 5 Imported by: 0

README

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...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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