Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.

ungoldman/martin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATION NOTICE

No longer supported or maintained. Use at your own risk.


Martin

A Ruby/Sinatra web application boilerplate optimized for immediate deployment to your favorite cloud server.

Based on Kyle Drake's Sammy Davis Junior boilerplate.

Quick Install

Martin uses Bundler for dependency management, DataMapper for database interactions, and Thin as a web server.

Put this code in your terminal...

$ git clone git://github.com/ngoldman/martin.git
$ cd martin
$ bundle install
$ bundle exec rake db:bootstrap
$ bundle exec thin start

...and you should have a test server running at http://localhost:3000.

Martin suggests immediately replacing everything in views/index.erb, public/js/global.js, and public/css/screen.css.

Quick Deploy

Once you've got things working to your satisfaction, all you need to do is commit your code, create a staging server and deploy with git push.

Martin recommends Heroku as the ideal candidate for deployment to a cloud staging server. The Heroku gem is included in the Gemfile by default. A Procfile is also included to ensure Martin will play nice with Heroku's new cedar stack.

$ git clone git://github.com/ngoldman/martin.git [dir name] && cd [dir name]
$ heroku create
$ heroku addons:add heroku-postgresql:dev
$ heroku pg:promote [database name] # get this by running `heroku addons`, should be something like `HEROKU_POSTGRESQL_JADE`
$ git push heroku master
$ heroku run rake db:bootstrap
$ heroku open

Credit

Martin is heavily inspired by Kyle Drake's Sammy Davis Junior boilerplate. After using Sammy as a starting point on a few projects I found myself removing and adding the same things over and over, so I thought I'd create a quick starting point tailored to the needs of the apps I've been writing. A great deal of the code in Martin comes from Sammy.

License

Martin is made available under the MIT License.

About

🙅 [deprecated]

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors