A simple, customizable landing page for email signup, based on Zurb, HTML5 Boilerplate, and Sinatra. Comes with Gaurd-Livereload to reload the browser (Install your browsers Live Reload plugin for this to work). To use, just run $ foreman s -f Procfile.dev
The current version has optional MailChimp and Google Analytics integration.
-
$ git clone [email protected]:stoplion/sinatra-landingpage-template.git
-
$ cd sinatra-landingpage-template
-
$ rm -rf .git
-
$ bundle install
-
Rename a file.env to .env
-
Register for a free MailChimp account and generate an API key (required).
-
Add your MAILCHIMP_LIST_NAME key to .env file (MAILCHIMP_LIST_NAME=xxxxx).
-
Add your MAILCHIMP_LIST_NAME key to .env file (MAILCHIMP_LIST_NAME=xxxxx).
-
Set up app.rb to capture the data you want, edit the form too.
-
Add your Google Analytics account number to .env (ANALYTICS_ACCOUNT_ID=xxxxx)
-
$ foreman s -f Procfile.dev
to start the app locally with Live Reload. -
Register for a free Heroku account (optional).
-
Follow the Ruby instructions to deploy to Heroku (optional).
-
Make sure you add the variables in .env to Heroku!
- Multiple deploy options
- Different Template Options
- Analytics