1
0
Fork 0
Find a file
2017-03-23 18:44:36 -04:00
src/puns Implement serverless pun api 2017-03-23 18:42:03 -04:00
.env.sample Implement serverless pun api 2017-03-23 18:42:03 -04:00
.gitignore Implement serverless pun api 2017-03-23 18:42:03 -04:00
Makefile Implement serverless pun api 2017-03-23 18:42:03 -04:00
package.json Implement serverless pun api 2017-03-23 18:42:03 -04:00
README.md Implement serverless pun api 2017-03-23 18:42:03 -04:00
serverless.yml Implement serverless pun api 2017-03-23 18:42:03 -04:00
yarn.lock Implement serverless pun api 2017-03-23 18:42:03 -04:00

punaday-api

JSON version of http://www.punoftheday.com/

Description

Server that takes Pun of the Day puns and converts it into JSON. Currently living as a serverless application in AWS Lamda. It is frontended by AWS Cloudfront because AWS Cloudformation does not yet have resources for AWS API Gateway domains. This script will also create a DNS record to point at the AWS Cloudfront Distribution.

Usage

  • cp .env.sample .env.production
    • AWS_CERTIFICATE: arn to aws certificate that you generated for a domain
    • DNS_ZONE: Route 53 zone name (ex. example.com.)
    • DOMAIN: Route 53 domain (ex. puns.example.com)
  • Set AWS credentials via environment or credential file
  • make