Skip to content
Rails/React clone of Trello
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 18 commits behind nitinsavant:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
docs
lib
log
public
test
tmp
vendor
.babelrc
.eslintrc
.gitignore
.postcssrc.yml
.ruby-version
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru
package-lock.json
package.json
yarn.lock

README.md

Rails + Webpack + React + Heroku

Where code should live

  • Ruby/Rails code should continue to live in its appropriate directory within app.
  • React code should live in app/javascript/components/.
  • React component unit tests should use the .test.js extension and live next to the components being tested within app/javascript/components/.

Useful commands

Run JS unit tests:

$ bin/yarn run test 

Run eslint on files in app/javascript/:

$ bin/yarn run lint

Deployment hints (source)

  1. Add the nodejs and ruby buildpacks:

    $ heroku create 
    $ heroku buildpacks:add --index 1 heroku/nodejs
    $ heroku buildpacks:add --index 2 heroku/ruby
    
You can’t perform that action at this time.