Giter Site home page Giter Site logo

thomasklemm / prelauncher Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.11 MB

Prelaunch signup page boilerplate for quick and easy deploy with Heroku.

Home Page: http://prelauncher.herokuapp.com

Ruby 94.34% Perl 0.76% CoffeeScript 2.64% Shell 2.26%

prelauncher's Introduction

Prelauncher

A nice and easily deployable prelaunch signup page for your startup.

Getting started

  • Download this repository as a ZIP-File

  • Rename the folder. The app will be available at http://folder_name.dev.

  • Install and update the gems.

    $ bundle install
    $ bundle update
  • If you are on a Mac:

    • Install Pow if you haven't already.
    • Install Powder if you haven't already and link the app.
      $ gem install powder
      $ powder link
    • Browse to http://folder_name.dev and see if everything is working.
  • Else

    • Just run the $ rails s and point your browser to localhost:3000.

Customizing

You'll be able to customize pretty much everything in this app, however it comes with great defaults.

Things you must customize

  • Mailer
    • default from address
    • default to address

Things you should customize

  • All views and stylesheets

Things you can customize

  • Everything, including
    • The Subscriber model (i.e. you could add some fields)
    • The outbound mail templates
    • ...

Git

  • Initialize Git repo (skip if you cloned the repo instead of downloading it)

    $ git init
    $ git add .
    $ git commit -am "First commit"
  • Optional: Push your app to Github in a private or public repo. You'll find instructions after creating a repo on Github.

Hosting

Prelauncher is ready-made for a quick and easy [Heroku] deployment. These are the steps:

  • Install the Heroku gem or Heroku toolbelt if you haven't already.

  • Create your app on Heroku.

    $ heroku create prelauncher --remote production
  • Add a SECRET_TOKEN config variable

    # Either
    $ rake secret
    # => random secure string to copy
    # or 
    $ rails console
    SecureRandom.hex(48)
    # => 123123.........123123; Copy this string and exit the rails console
    
    $ heroku config:add SECRET_TOKEN=123123.......123123
  • Add the nescessary addons. The free plan suffices for each.

  • Deploy.

    $ git push production master
  • Optional: Tail the logs in a second terminal window.

    $ heroku logs -t
  • Browse your Heroku app to see if everything is working.

  • Add New Relic availability monitoring to prevent dyno idling. Go to New Relic from your Heroku apps page and set it in Settings > Availibility Monitoring. Every 10 minutes is plenty.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

If you have questions, just open an issue. You'll also find me at @thomasjklemm and by mail at github_at_tklemm_dot_eu.

Thomas Klemm

Licence

MIT

prelauncher's People

Contributors

thomasklemm avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.