Skip to content

A simple secure Heroku-ready Sinatra-based app to collect donations via Stripe.

Notifications You must be signed in to change notification settings

JamesChevalier/donoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Donoku

Build Status Code Climate Coverage Status

A simple Heroku-ready Sinatra-based app to collect donations via Stripe. This app forces an SSL connection outside of the Development environment.

Configuration

  • Set ENV['STRIPE_PUBLISHABLE_KEY'] to your Stripe account's Publishable Key
  • Set ENV['STRIPE_SECRET_KEY'] to your Stripe account's Secret Key
  • Edit lines 10 through 23 in app.rb
  • Follow the steps here to get your MailChimp embed form. You should use the 'Naked' version of MailChimp's form.
  • Paste that code into the views/mailchimp.erb file.

Run Local

  • Run bundle install to install the required gems
  • Set ENV['STRIPE_PUBLISHABLE_KEY'] to your Stripe account's Test Publishable Key or temporarily swap ENV['STRIPE_PUBLISHABLE_KEY'] in app.rb with "your_test_publishable_key"
  • Set ENV['STRIPE_SECRET_KEY'] to your Stripe account's Test Secret Key or temporarily swap ENV['STRIPE_SECRET_KEY'] in app.rb with "your_test_secret_key"
  • Run rackup to run the server
  • Go to http://127.0.0.1:9292 to use the site

Deploy

  • heroku create
  • heroku config:set STRIPE_PUBLISHABLE_KEY=something STRIPE_SECRET_KEY=something
  • git push heroku master

About

A simple secure Heroku-ready Sinatra-based app to collect donations via Stripe.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages