/dev_school

Become a developer!

Primary LanguageRubyMIT LicenseMIT

Dev School

Setup

  1. Install Docker for Mac
  2. Goto a directory where you want to keep code. I keep mine in ~/Projects.
    • cd ~ - This moves your terminal to your home directory.
    • mkdir Projects - This creates the dir ~/Projects.
    • cd Projects - This moves you into the new Projects dir.
  3. Git clone this repository to your computer. git clone git@github.com:arich/dev_school.git
  4. cd dev_school - This moves you into the new dev_school dir.
  5. docker-compose up - This starts the rails web server and database locally.
  6. docker-compose run --rm web bundle exec rake db:create - This creates your local database within the docker container.
  7. In a browser like Chrome, go to http://localhost:3001/. You should see a message that says "Yay! You're on Rails!"

The above steps should only need to be run once. To pick up where you left off last time:

Resuming work

  1. cd Projects/dev_school
  2. docker-compose up