Git Product home page Git Product logo

martin's Introduction

Martin

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

Quick Install

Martin prefers Bundler for dependency management and recommends Thin as a web server.

$ bundle install
$ bundle exec rake db:bootstrap
$ bundle exec thin start

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 init
$ git add .
$ git commit -m 'init'
$ heroku create --stack cedar
$ heroku addons:add logging
$ heroku addons:add shared-database
$ git push heroku master
$ heroku run rake db:bootstrap
$ heroku open; heroku ps; heroku logs --tail

Credit

Martin is heavily inspired by Sammy Davis Junior. 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.

License

Martin is made available under the MIT License.

martin's People

Contributors

ungoldman avatar

Stargazers

 avatar

Watchers

 avatar  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.