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 railsorgem install rails --pre\ - if using rbenv, run
rbenv rehashafter installing rails - Yarn -
brew install yarnor 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.rbOr if you have downloaded this repo, you can reference template.rb locally:
rails new myapp -d postgresql -m ~/path/to/template.rbTo 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: 'john.doe@example.com', password: 'password', admin: true)