https://github.com/rjayroach/rails-templates
Consistent bootstrap of Rails projects
https://github.com/rjayroach/rails-templates
Last synced: about 1 year ago
JSON representation
Consistent bootstrap of Rails projects
- Host: GitHub
- URL: https://github.com/rjayroach/rails-templates
- Owner: rjayroach
- Created: 2015-05-04T20:58:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T19:21:16.000Z (almost 7 years ago)
- Last Synced: 2025-02-02T02:28:31.468Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rails-templates
http://guides.rubyonrails.org/rails_application_templates.html
```bash
rails new todo-app -m https://raw.githubusercontent.com/rjayroach/rails-templates/master/4-main.rb
```
```bash
bin/rake rails:template LOCATION=https://raw.githubusercontent.com/rjayroach/rails-templates/master/5-api.rb
```
```bash
rails new todo-app --api -m https://raw.githubusercontent.com/rjayroach/rails-templates/master/5-api.rb
```
```bash
rails new todo-app --api -m path-to-rails-templates/5-api.rb
```
## Plugins
A Rails plug-in is just a bare bones gem with a railtie
Passing the `--full` option will create a full app structure which is aka an engine
Passing the `--mountable` additionally adds `isolate_namespace = true` and requires to mount engine routes
in the application's config/routes.rb
```bash
rails plugin new todo-engine --api --full -m path-to-rails-templates/5-api.rb -T --dummy-path=spec/dummy
```
## TODO
- fix up slack role so it is immediately configured
- test applying the template to an existing project to add, e.g. grpc.
- Implement https://github.com/brigade/overcommit