Code Monkey home page Code Monkey logo

sinatra-thor's Introduction

Sinatra Thor

Thor script to generate a skeleton Sinatra application

Background

I love Sinatra and the minimalist philosophy it embodies.

However, I felt that frameworks like Monk or Padrino take away from that minimalist feel.

So I created a script using Thor that generates a very minimal Sinatra application.

Description

This Thor script will generate a minimalist Sinatra application.

The application that is generated includes the following Gems:

And sets up the following front-end frameworks

Finally, the script will automatically install gems via Bundler and initialize a Git repository.

Requirements

Install

Clone the repository to your local machine:

git clone https://github.com/jeffharrington/sinatra-thor.git

Change to the directory of the project and run:

thor install sinatra.thor

After going through the installation process, you will now see the task installed when you run:

thor installed

Usage

Execute the script using Thor as follows:

thor sinatra:generate YOUR_APPLICATION_NAME

This will generate a new Sinatra application with the following folder structure:

  • config/
    • unicorn.rb
  • public/
    • css/
      • application.css
    • js/
      • application.js
  • views/
    • layouts/
      • application.erb
    • index.erb
  • .gitignore
  • app.rb
  • config.ru
  • environment.rb
  • Gemfile
  • Procfile

##License

The MIT License (MIT)

Copyright (c) 2013 Jeffrey Harrington, [email protected]

sinatra-thor's People

Contributors

jeffharrington avatar

Stargazers

 avatar

Watchers

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