1
0
Fork
You've already forked jumpstart
0
null
Ruby 46.3%
HTML 45.4%
SCSS 4.7%
JavaScript 3.5%
Procfile 0.1%
Find a file
2019年08月19日 12:41:18 -05:00
.github Create FUNDING.yml 2019年06月25日 08:42:16 -05:00
app Refactor devise errors to use the template instead of the helper 2019年03月11日 21:40:12 -05:00
config Configure ActionCable to authenticate with Devise and use Redis by default 2018年05月22日 07:49:47 -05:00
lib/templates/erb/scaffold removed glyph icon reference ( #79 ) 2019年05月01日 08:08:08 -05:00
.foreman Add Rails 6 support and move all Javascript to webpacker 2019年02月28日 20:04:23 -06:00
.gitignore Added sitemap generator ( #50 ) 2018年04月24日 14:06:08 -05:00
CHANGELOG.md Add Rails 6 support and move all Javascript to webpacker 2019年02月28日 20:04:23 -06:00
LICENSE Create LICENSE ( #31 ) 2018年03月22日 05:33:10 -07:00
Procfile Add Rails 6 support and move all Javascript to webpacker 2019年02月28日 20:04:23 -06:00
Procfile.dev Use bundle exec to help with version problems 2019年03月08日 12:53:13 -06:00
README.md Update README.md 2019年05月30日 10:00:18 -05:00
template.rb Upgrade to Devise 4.7 for Rails 6.0 2019年08月19日 12:41:18 -05:00

👉 We've also built Jumpstart Pro which is a version of Jumpstart that includes payments with Stripe & Braintree, team accounts, TailwindCSS, and much more.

Jumpstart Rails Template

All your Rails apps should start off with a bunch of great defaults. It's like Laravel Spark, for Rails.

Note: Requires Rails 5.2 or higher

Want to see how it works? Check out the Jumpstart walkthrough video:

Jumpstart Ruby on Rails Template Walkthrough

Getting Started

Jumpstart is a Rails template, so you pass it in as an option when creating a new app.

Requirements

You'll need the following installed to run the template successfully:

  • Ruby 2.5 or higher
  • Redis - For ActionCable support
  • bundler - gem install bundler
  • rails - gem install rails
  • Yarn - brew install yarn or Install Yarn
  • Foreman (optional) - gem install foreman - helps run all your processes in development

Creating a new app

rails new myapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb

Or if you have downloaded this repo, you can reference template.rb locally:

rails new myapp -d postgresql -m 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.

Authenticate with social networks

We use the encrypted Rails Credentials for app_id and app_secrets when it comes to omniauth authentication. Edit them as so:

EDITOR=vim rails credentials:edit

Make sure your file follow this structure:

secret_key_base:[your-key]development:github:app_id:somethingapp_secret:somethingoptions:scope:'user:email'whatever:trueproduction:github:app_id:somethingapp_secret:somethingoptions:scope:'user:email'whatever:true

With the environment, the service and the app_id/app_secret. If this is done correctly, you should see login links for the services you have added to the encrypted credentials using EDITOR=vim rails credentials:edit

Cleaning up

rails db:drop
spring stop
cd ..
rm -rf myapp