Skip to content

canvasnyc/canvas-rails-template

Repository files navigation

Canvas Rails Template

Template for building rails apps from scratch with admin authentication setup and uses babel and browserify to transpile ES6 to ES5. Includes base styles, JS module structure & breakpoint utility.

Usage

Assuming you want to create "my-rails-app":

1 - Clone this repo:

git clone git@github.com:canvasnyc/canvas-rails-template.git my-rails-app

2 - Bootstrap your app (prepare config files etc...):

cd my-rails-app && ./bootstrap my-rails-app

3 - Update git origin with your repo

git remote set-url origin git@github.com:canvasnyc/my-rails-app.git

4 - Setup Database naming in config/database.yml

5 - Create, migrate, and seed database with devise administrators

rake db:create db:migrate db:seed

6 - Install NPM packages for ES6 transpiling

npm install

Heroku Setup

git remote -v
git remote rename heroku production
git remote add staging https://git.heroku.com/HEROKU-APP-NAME.git
heroku buildpacks:add --index 1 heroku/nodejs
heroku buildpacks:add heroku/ruby

Documentation

Debugging

Asset Managment

Static Pages

Testing

Authentication/Authorization

File Uploading

Production

Forms

Background Jobs

Dependencies

  • homebrew
  • phantomjs: brew install phantomjs
  • Terminal Notifier: brew install terminal-notifier

About

Template for building rails apps from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published