Go Serverless
This is a sample serverless app using Golang. In this README, you will find instructions to setup a Go development
environment, install required dependencies, run the tests, and deploy the Serverless API app to AWS.
Setup
Go
Download and install the latest version of Go from following the instructions here.
Node
This project uses a .nvmrc
file to automatically set the local Node version. If you are not using NVM to manage
node versions locally, you will need to download and use Node version 16.13.0 or newer.
Yarn
Download and install the latest version of Yarn from following the instructions
here.
Installing Dependencies
Required Go Dependencies
To download and install the required Go dependencies, run the following command from a terminal within the root
directory of the project:
$ go mod tidy
Serverless
To download and install serverless and the local/offline serverless plugins, run the following command from a terminal
within the root directory of the project:
$ yarn install