lewagon/wagon_rails

Name: wagon_rails

Owner: Le Wagon

Description: [DEPRECATED] Please use this ?

Created: 2015-02-21 20:31:52.0

Updated: 2018-03-22 09:32:41.0

Pushed: 2015-12-21 11:35:16.0

Homepage: https://github.com/lewagon/rails-templates

Size: 264

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Wagon Rails

Gem Version

Wagon Rails is the base Rails application used by Le Wagon's students during the 9-week FullStack bootcamp. It's the scripted version of lewagon/rails-kickoff where you would manually copy/paste commands to achieve the same result with just one command line.

Installation

First install the wagon_rails gem:

m install wagon_rails

Then run:

 ~/code/YOUR_GITHUB_NICKNAME
gon_rails new YOUR_PROJECT_NAME

This will create a Rails app in YOUR_PROJECT_NAME using the latest version of Rails, create a GitHub repository and an application on Heroku.

Advanced usages

If you don't want to create a GitHub repo, use the --skip-github flag, and if you don't want to create an Heroku app, use the --skip-heroku flag.

gon_rails new YOUR_PROJECT_NAME --skip-github --skip-heroku
Dependencies

This gem suppose that you have Postgresql on your computer. Check out lewagon/setup

For the GitHub repo creation, it assumes you have the hub gem installed.

m install hub

And for the Heroku app creation, it assumes that you have the heroku binary and are logged in (heroku login).

ew install heroku
roku login
Gemfile

To see the latest and greatest gems, look at WagonRails' Gemfile, which will be appended to the default generated projectname/Gemfile.

It includes application gems like:

And development gems like:

And production gems for a ready-to-deploy app on Heroku.

WagonRails, when the --skip-heroku flag is not used, will add a deploy script to the bin repository. Simply deploy with:

ploy  # git push heroku + rake db:migrate + restart
Option

You can enable Pundit for user authorization, open the Gemfile, uncomment the pundit gem. Then:

ndle install
ils g pundit:install
Credits

WagonRails is a fork of thoughtbot/suspenders, which is maintained and funded by thoughtbot, inc.

Thank you guys for creating this gem in the first place!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.