Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcelofossrj/rails5_boilerplate
Rails 5 project template boiler plate
https://github.com/marcelofossrj/rails5_boilerplate
Last synced: 11 days ago
JSON representation
Rails 5 project template boiler plate
- Host: GitHub
- URL: https://github.com/marcelofossrj/rails5_boilerplate
- Owner: MarceloFossRJ
- License: mpl-2.0
- Created: 2019-09-04T23:20:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-24T20:11:31.000Z (over 4 years ago)
- Last Synced: 2024-11-08T17:45:28.546Z (2 months ago)
- Language: Ruby
- Size: 8.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Rails 5 Boilerplate
Creates a new Rails multi-tenant app using pre-defined defaults, using rails templates approach [https://guides.rubyonrails.org/rails_application_templates.html](https://guides.rubyonrails.org/rails_application_templates.html).Tested Rails Version:
`gem 'rails', '~> 5.2.1'`
`gem 'rails', '~> 5.2.3'`Test Ruby Versions:
`ruby '2.6.1'`
`ruby '2.7.0'`## How to use
To apply a template, you need to provide the Rails generator with the location of the template you wish to apply using the -m option. This can either be a path to a file or a URL.```bash
$ rails new myapp -d -m ~/template.rb
$ rails new myapp -d -m http://example.com/boilerplate.rb
```
You can use the `app:template` rails command to apply templates to an existing Rails application. The location of the template needs to be passed in via the LOCATION environment variable. Again, this can either be path to a file or a URL.```bash
$ rails app:template LOCATION=~/template.rb
$ rails app:template LOCATION=http://example.com/template.rb
```