The best spud ranking app to ever exist
To run the app locally, install the following:
Execute the bootstrap script under /bin.
Run docker compose up.
To deploy the API, you need to have the following:
- Go
- AWS CLI
- Serverless framework
- Terraform
In the infrastructure directory, run the following command to deploy the infrastructure:
terraform applyThis will create all necessary AWS resources including the DynamoDB table, IAM permissions and role required for the Lambda functions.
Next, from the server directory build the Go app into a file called bootstrap.
GOARCH=amd64 GOOS=linux go build -o bootstrap ./cmd/apiThen once you have the bootstrap file, you can deploy the API using the following command:
serverless deployThis will deploy the app to AWS and return the API Gateway URL in the output.