AWS Lambda - Run code without thinking about servers or clusters (1 million requests free per month with the AWS Free Tier)
Go Fiber as they describe is an Express-inspired web framework written in Go. It is a Go web framework built on top of Fasthttp, the fastest HTTP engine for Go.
Serverless is a framwork to easily deploy your code as Lambda Function on different cloud providers like AWS, Google Cloud etc...
Aws Lambda Go Api Proxy - We have used this package to proxy all request from API Gateway to Fiber App running as lambda function.
Tutorial Go Fiber Rest API - Some examples have been taken from this repo and modified accordingly.
Fiber Go Template - This template have been also used.
- Please make sure you have serverless package installed globally.
- Go to the deploy.sh file, change the
servicemind-prod
with your aws profile name (which you can easily configure withaws configure --profile name
) - You can then run this file which will build go executable and then deploy it on your aws account in the given region.
- Run npm install to install
nodemon
package locally. - Update .env file with environment variables as per your need.
- Run start-local.sh