UNPKG

1.68 kBMarkdownView Raw
1# generator-ruby-starter-kit
2
3[![NPM info][nodei.co]][npm-url]
4
5[![Code Climate](https://codeclimate.com/github/artemv/generator-ruby-starter-kit/badges/gpa.svg)](https://codeclimate.com/github/artemv/generator-ruby-starter-kit)
6[![Travis build status](https://travis-ci.org/artemv/generator-ruby-starter-kit.svg?branch=master)](https://travis-ci.org/artemv/generator-ruby-starter-kit)
7[![Dependency Status](https://david-dm.org/artemv/generator-ruby-starter-kit.svg)](https://david-dm.org/artemv/generator-ruby-starter-kit)
8[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
9
10A [Yeoman](http://yeoman.io/) generator for Ruby app boilerplate based on [Ruby Starter Kit](https://github.com/artemv/ruby-starter-kit) (Bundler, Guard, ActiveSupport Logger, Rubocop, RSpec, WebMock, Travis, CodeClimate)
11
12### Installation
13
14* Install Ruby 2.3.1 from https://www.ruby-lang.org/en/downloads/ or via RVM (https://rvm.io/).
15* Install `yo` and this generator globally:
16```
17npm install -g yo generator-ruby-starter-kit
18```
19* Navigate to the directory you'd like to use for your project and run the generator:
20```
21cd my-app
22yo ruby-starter-kit
23```
24
25### Basic Guide
26
27Run the app entry point script:
28```
29repo=octokit.py bin/app.rb
30```
31
32Run the guard dev env tool:
33```
34guard
35```
36It will run rubocop on start, will run rubocop inspections on changed files and will re-run all RSpecs and rubocop
37inspections if you hit Enter in guard window.
38
39[nodei.co]: https://nodei.co/npm/generator-ruby-starter-kit.png?downloads=true
40[npm-url]: https://npmjs.org/package/generator-ruby-starter-kit