Rails template for new applications. Based on Jumpstart.
Note: Requires Rails 6.0.0.rc2 or higher
- Users are
People
| a User is aPerson
- Account registration is disabled, use
Person.create!()
or the admin portal - Announcements & notifications removed
- Omniauth removed
- Sitemap removed
- Gravatar removed
- Mini_magick removed
- Whenever removed
- ActionCable Devise tweaks removed
You'll need the following installed to run the template successfully:
- Ruby 2.5 or higher
- Bundler -
gem install bundler
- Rails 6.0.0.rc2 or higher -
gem install rails
orgem install rails --pre
\ - if using rbenv, run
rbenv rehash
after installing rails - Yarn -
brew install yarn
or Install Yarn - Foreman (optional) -
gem install foreman
- helps run all your processes in development
rails new myapp -d postgresql -m https://raw.githubusercontent.com/arinthros/rails-template/master/template.rb
Or if you have downloaded this repo, you can reference template.rb locally:
rails new myapp -d postgresql -m ~/path/to/template.rb
To run your app, use foreman start
.
This will run Procfile.dev
via foreman start -f Procfile.dev
as configured by the .foreman
file and will launch the development processes rails server
, sidekiq
, and webpack-dev-server
processes. You can also run them in separate terminals manually if you prefer.
A separate Procfile
is generated for deploying to production.
rails c
Person.create!(first_name: 'John', last_name: 'Doe', email: '[email protected]', password: 'password', admin: true)