Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.51 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.51 KB

MNO Enterprise Rails Application Template

This template bootstrap a MNO Enterprise project.

How to Use

rails new [project_name] -TOJ -m https://raw.githubusercontent.com/maestrano/mno-enterprise/master/rails-template/mnoe-app-template.rb

Or

rails new [project_name] -TOJ -m <path-to>/mnoe-app-template.rb

Feel free to adapt the flags used if you need ActiveRecord or Test::Unit:

  • -O or --skip-active-record
  • -T or --skip-test-unit
  • -S or --skip_sprockets
  • -J or --skip_javascript

Once the app exists:

cd [project_name]
foreman start

What it does

  1. Adds the following gems:
  • CI:
    • rubocop: Ruby static code analyzer
    • brakeman: A static analysis security vulnerability scanner
    • bundler-audit: Patch level verification for bundler
  • Testing:
    • rspec-rails: Rspec is a testing tool for test-driven and behavior-driven development..
    • factory_girl_rails: FactoryGirl is a fixtures replacement with a straightforward definition syntax.
    • shoulda-matchers: Collection of testing matchers extracted from Shoulda
    • simplecov: Code coverage
  1. Add and install mno-enterprise

  2. Initializes a new git repository with an initial commit.