We unfortunately don't have time to support issues, fixes, or pull requests for this repository. This code was posted as is, in hopes it would be useful to others in the community.
Originally open sourced over on our engineering blog, and discussed in great detail over at Tim Ferriss' Blog, Prelaunchr is a skeleton Rails application for quickly starting a viral prelaunch campaign for new companies or products. The campaign is conducive to social sharing and has prize levels based on the number of people each person refers. By default, we've included our original HTML/CSS for both the site and email to give you a better idea of how this looked when actually running.
Prelaunchr has a main mechanic from which everything else is derived: Every
User is given a unique
referral_code which is how the application knows who referred a signing up user. Based on the amount of referrals a
User has brought to the site, they are put into a different "prize group". The groups, amounts, and prizes are completely up to you to set.
By default, we block more than 2 sign-ups from the same IP address. This was simplistic, but was good enough for us during our campaign. If you want something more substantial take a look at Rack::Attack
- Follow the standard Rails 3.2.x setup tasks over at the Rails GitHub, basically
bundle installin this directory.
bundle exec rake db:create db:schema:load db:seedto setup the database
bundle exec rails sto startup the Rails Server
When your prelaunch campaign comes to an end we've included a helpful
rake task to help you compile the list of winners into CSV's containing the email addresses and the amount of referrals the user had.
bundle exec rake prelaunchr:create_winner_csvsand the app will export CSV's in
/lib/assetscorresponding to each prize group.
- Change the default Admin user credentials in
- Set the different prize levels on the
rake secretto generate a new Rails
secret_tokenand set it in
/config/intializers/secret_token.rb(or in the
/config/application.rbdecides whether the prelaunch campaign has ended or not (e.g. Active/Inactive). We've included this option so you can quickly close the application and direct users to your newly launched site.
The code, documentation, non-branded copy and configuration are released under the MIT license. Any branded assets are included only to illustrate and inspire.
Please change the artwork to use your own brand! Harry's does not give you permission to use our brand or trademarks in your own marketing.