https://github.com/fernandes/rails_template
my rails template
https://github.com/fernandes/rails_template
Last synced: about 1 month ago
JSON representation
my rails template
- Host: GitHub
- URL: https://github.com/fernandes/rails_template
- Owner: fernandes
- Created: 2022-11-26T18:47:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T14:39:18.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T11:44:36.620Z (3 months ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails Template
Kickstart a new rails app, as easy as
```bash
rails new foo -m /path/to/template.rb
```## rails.rc
To automate the use of this template, I have a `rails.rc` with the following content.
```bash
⌁ cat ~/.railsrc
--database=postgresql
--skip-javascript
--skip-hotwire
--skip-asset-pipeline
-m /path/to/rails_template/template.rb
```## Applying Individual Tools
This template was created keeping in mind we can apply it to a new app, or just individual tools
to existing rails apps, just apply individual, just run```bash
bin/rails app:template LOCATION=/path/to/rails_template/tools/.rb
```## References
This template is not intended to general use, I'm glad if you use and works for you, but the main goal is not support every single case. I'm opening the source so we can share from each other, think about this template as a _dotfiles_ repo.
You can check all the references (that I learned a lot from it), and create your very unique template
- [Rails Guides](https://guides.rubyonrails.org/generators.html) is an amazing resource to learn the basic of the generators
- [Rails Bytes](https://railsbytes.com/) has a lot of templates to explore and apply
- [mattbrictson's template](https://github.com/mattbrictson/rails-template) is a great template to use and learn a lot from it