Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
bin
 
 
 
 
db
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Ruby on Rails Tutorial sample application

Build Status

This is the sample application based on Ruby on Rails Tutorial: Learn Web Development with Rails by Michael Hartl.

Getting started

To get started with the app, clone the repo and then install dependencies:

$ docker-compose run --rm node yarn install
$ docker-compose run --rm spring bundle install

Next, build frontend assets:

$ docker-compose run --node /bin/sh -c "yarn lint && yarn build"

Then, migrate the database:

$ docker-compose run --rm spring bin/rails db:create db:migrate

Finally, run the test suite to verify that everything is working correctly:

$ docker-compose run --rm spring bin/rspec 

If the test suite passes, you'll be ready to run the app in a local server:

$ docker-compose up -d app node
You can’t perform that action at this time.