Based on Jumpstart
Note: Requires Rails 6.0.0.rc2 or higher
- Users changed to
Accounts
| User changed toAccount
- Account registration is disabled, use
Account.create!()
or the admin portal - Announcements removed
- Omniauth removed
- Sitemap removed
- Mini_magick removed
- Notifications removed (throwing errors in Jumpstart)
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, runrbenv 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-ac/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
Account.create!(first_name: 'John', last_name: 'Doe', email: '[email protected]', password: 'password', admin: true)
rails db:drop
spring stop
cd ..
rm -rf myapp