Conserving What Would Micah Say
This is a serverless incarnation of a special API method at Cooper Hewitt, Smithsonian Design Museum called "What would Micah say?" At the time of this writing, the API method still exists and you should go an use it there if you want it. However, things change, and I wanted to conserve the method and it's output long term. It's now available freely right here.
You can also try out this method right on my website by going to here.
This repo is designed to be easily deployable to AWS. It uses a Serverless Application Model or "SAM" for deployment, which makes it super easy to test locally and deploy and deploy al the parts to your own AWS account.
To get started you will need to install the SAM CLI for your operating system. This assumes you have an AWS account and credentials configured on your system.
Once you have SAM set up for your system and account you can test locally and deploy to your account.
To test the Lambda function locally you will need Docker installed on your system. Once you have Docker installed and running all you need to do are the following two commands:
> sam build
> sam local start-api
Once you have the api up and running you should be able to go to http://127.0.0.1:3000/ and see the response in your browser.
To deploy to AWS all you need to do the first time is the following command:
> sam deploy --guided
SAM will create a Cloud Formation template and build out the resources for you. Once it is done doing its thing you will receive a URL for the live API.