Keine Beschreibung

Chris Oliver faed499191 Update bootstrap to 4.2 and fix js dropdown error vor 5 Jahren
app faed499191 Update bootstrap to 4.2 and fix js dropdown error vor 5 Jahren
config aea6b4e0ee Configure ActionCable to authenticate with Devise and use Redis by default vor 6 Jahren
lib 63d6cd3bd0 Add some basic scaffold overrides that use Bootstrap vor 6 Jahren
.gitignore d538d2e5b3 Added sitemap generator (#50) vor 6 Jahren
LICENSE 4afd959fff Create LICENSE (#31) vor 6 Jahren
Procfile b24e7c435b Refactor a bit. Adds Sidekiq, Webpacker, and Foreman. vor 7 Jahren
README.md d9e8201ae1 Update README.md (#67) vor 5 Jahren
template.rb faed499191 Update bootstrap to 4.2 and fix js dropdown error vor 5 Jahren

README.md

Rails Jumpstart

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

Note: Requires Rails 5.2

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+
  • bundler - gem install bundler
  • rails - gem install rails
  • Yarn - brew install yarn or Install Yarn

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

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: something
    app_secret: something
    options:
      scope: 'user:email'
      whatever: true
production:
  github:
    app_id: something
    app_secret: something
    options:
      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