sample-lambda-app

module
v0.0.0-...-4622058 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT

README

sample-lambda-app

Since this tries to follow the 3 Musketeers methodology, the following are heavily used:

  • Docker
  • Docker Compose
  • Make

Usage

configure
$ make .env
  • see generated .env file for configuration

Note: For deployment via CI/CD, CICD_MODE environment variable should be set to true in the build server. All configuration should also be set in the build server's environment variables. They will automatically be used if .env is generated from .env.cicd.

run tests
$ make test
tidy dependencies
$ make deps
build serverless functions
$ make build
deploy serverless application
$ make deploy
Helpers during development:
format all .go files in project (using go fmt)
$ make fmt
generate test mocks (to be used with stretchr/testify) for all interfaces in project
$ make genMocks

Directories

Path Synopsis
functions
mocks
pkg

Jump to

Keyboard shortcuts

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