Dana's Blog
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.git-hooks/pre_push
cloudformation
data
design
helpers
source
.gitignore
.overcommit.yml
Gemfile
Gemfile.lock
README.md
config.rb
s3_website.yml

README.md

A Dana Life - Source Code

Live site available here: https://www.dana.lol

If you want you can read these two articles about how the site works: part 1 and part 2.

Contact Form

The site is designed to be static, but there is a small app that runs the contact page. You can view the code that runs the contact page in the danalol-contact-form project.

Technical Infrastructure

To build out the infrastructure required to run this site, you can use the CloudFormation templates found in cloudformation/

You will need domain name (like example.com), a blog domain name (like www.example.com), and an AWS ACM Certificate ARN string.

# create the hosted zone in Route53
aws cloudformation create-stack \
  --stack-name <<ROUTE53 STACK NAME>> \
  --template-body file://./cloudformation/route53-zone.yaml \
  --parameters ParameterKey=DomainName,ParameterValue=<<EXAMPLE.COM>>

# create the S3 bucket and CloudFront setup
aws cloudformation create-stack \
  --stack-name <<CDN STACK NAME>> \
  --template-body file://./cloudformation/s3-static-website-with-cloudfront-and-route-53.yaml \
  --parameters \
      ParameterKey=DomainName,ParameterValue=<<EXAMPLE.COM>> \
      ParameterKey=FullDomainName,ParameterValue=<<WWW.EXAMPLE.COM>> \
      ParameterKey=AcmCertificateArn,ParameterValue=<<ACM ARN STRING>>