A simple, customizable landing page for email signup, based on Twitter Bootstrap, HTML5 Boilerplate, and Sinatra.
The current version has optional MailChimp and Google Analytics integration.
Please visit the live demo on Heroku and join the project mailing list
- Fork this project.
$ git clone git://github.com/<yourusernamehere>/email-landing-page.git
$ cd email-landing-page
$ rm -rf .git
$ bundle install
- Register for a free MailChimp account and generate an API key (required).
- Modify
views/index.erb
, replacing sample content with your own. - If you want nifty Rack-based Google Analytics, edit
Gemfile
andconfig.ru
, uncomment the indicated lines, and add your Google Analytics account ID (optional). Otherwise add any analytics code you want toviews/index.erb
. $ MAILCHIMP_API_KEY={your_key} MAILCHIMP_LIST_NAME="{your_list}" bundle exec rackup
to start the app locally on port 9292.- Test locally.
- Register for a free Heroku account (optional).
- Follow the Ruby instructions to deploy to Heroku (optional).
- Use
config:set
to setup your two mailchimp env variables as explained here. - Configure custom domain name with Heroku.
Inspired by alphabetum/landing-page.