Skip to content

Instantly share code, notes, and snippets.

@jackowayed
Created November 12, 2011 19:41
Show Gist options
  • Save jackowayed/1361003 to your computer and use it in GitHub Desktop.
Save jackowayed/1361003 to your computer and use it in GitHub Desktop.
Echo Setup

Echo Setup

Here is what I did on my Mac to get echo setup. (with some other possible steps thrown in)

Sign Up For GitHub

If you don't already have a GitHub account, the first thing you'll want to do is go to github.com and sign up.

Fork the repository

go to https://github.com/echosystem/echo, then click the "fork" button towards the top right to get your own private copy of the code.

Clone your fork

Make a git clone of the repository on your computer. You want to use the private clone url, which should be git@github.com:username/echo.git

If you don't already have git, install it. On mac I use Homebrew to install by running

$ brew install git

but there's also downloads at http://git-scm.com/

Once you have git installed, you should be able to run

$ git clone git@github.com:username/echo.git

and it will create a directory within the directory from which you ran that where all of echo's files will be.

Once it's cloned, cd into it.

$ cd echo

Install MySQL

MySQL is a popular database that echo uses.

I installed it with homebrew.

$ brew install mysql

Also installers here

Install Ruby

You need Ruby and Rubygems. Mac ships with both, so I didn't do anything. http://www.ruby-lang.org/en/ has downloads.

Install Gems (Libraries)

I took the gems listed on the pirate pad and made a list of gem install calls to match. Download the file, which is at https://gist.github.com/raw/1361003/7f888cab83b652741de7fc1969d6bceb92e1e02f/gems

and then from that directory run

$ sh gems

You should see a lot of gem output. If you see one or two failures it's quite possible that things will still work, so make note of which had problems but try moving on.

Setup Database

Download this file https://gist.github.com/raw/1361003/65383b4eb234f863fcd31d47949387fd6f551ef8/database.yml

and put it in the config/ directory of echo.

Note that this assumes that your "root" (administrator) mysql user has no password. This is the default. It's also pretty bad practice, and it's pretty bad practice to actually have an application use the root user. But if you just installed mysql, you don't have any other databases for it to potentially mess up, so it's safe. If you already had mysql installed and have other databases, even though Rails doesn't do anything stupid and only touches the database you tell it to touch, I'd recommend setting up another user with a password and changing the user line in database.yml to that username, and also adding a "password: whatever_the_password_is" line.

Once your database.yml file is in config, you can create and setup the database by running:

$ rake db:create # make the database for echo
$ rake db:reset # create all the tables
$ rake db:fixtures:load # populate it with some initial data

Run it!

Now everything should be ready to run echo. run

$ ./script/server

Wait a few seconds and then go to http://localhost:3000 in your browser. Hopefully, you see echo.

development:
adapter: mysql
database: echo_dev
username: root
gem install acl9 --version 0.12.0 --no-rdoc --no-ri
gem install actionmailer --version 2.3.5 --no-rdoc --no-ri
gem install actionpack --version 2.3.5 --no-rdoc --no-ri
gem install activerecord --version 2.3.5 --no-rdoc --no-ri
gem install activeresource --version 2.3.5 --no-rdoc --no-ri
gem install activesupport --version 2.3.5 --no-rdoc --no-ri
gem install authlogic --version 2.1.6 --no-rdoc --no-ri
gem install builder --version 2.1.2 --no-rdoc --no-ri
gem install cucumber --version 0.8.3 --no-rdoc --no-ri
gem install cucumber-rails --version 0.3.2 --no-rdoc --no-ri
gem install daemons --version 1.1.3 --no-rdoc --no-ri
gem install database_cleaner --version 0.4.3 --no-rdoc --no-ri
gem install delayed_job --version 2.0.3 --no-rdoc --no-ri
gem install diff-lcs --version 1.1.2 --no-rdoc --no-ri
gem install ezcrypto --version 0.7.2 --no-rdoc --no-ri
gem install flexmock --version 0.9.0 --no-rdoc --no-ri
gem install formtastic --version 1.1.0 --no-rdoc --no-ri
gem install gherkin --version 2.0.2 --no-rdoc --no-ri
gem install hoe --version 2.10.0 --no-rdoc --no-ri
gem install i18n --version 0.4.2 --no-rdoc --no-ri
gem install jferris-mocha --version 0.9.5.0.1241126838 --no-rdoc --no-ri
gem install json --version 1.5.3 --no-rdoc --no-ri
gem install json_pure --version 1.4.6 --no-rdoc --no-ri
gem install linecache --version 0.43 --no-rdoc --no-ri
gem install mysql --version 2.8.1 --no-rdoc --no-ri
gem install nokogiri --version 1.4.4.1 --no-rdoc --no-ri
gem install rack --version 1.0.1 --no-rdoc --no-ri
gem install rack-test --version 0.6.0 --no-rdoc --no-ri
gem install rails --version 2.3.5 --no-rdoc --no-ri
gem install rails_sql_views --version 0.8.0 --no-rdoc --no-ri
gem install rake --version 0.8.7 --no-rdoc --no-ri
gem install rbx-require-relative --version 0.0.5 --no-rdoc --no-ri
gem install rest-open-uri --version 1.0.0 --no-rdoc --no-ri
gem install rspec --version 1.3.2 --no-rdoc --no-ri
gem install rspec-rails --version 1.3.4 --no-rdoc --no-ri
gem install ruby-debug-base --version 0.10.5.jb2 mswin32 --no-rdoc --no-ri
gem install ruby-debug-ide --version 0.4.17.beta5 --no-rdoc --no-ri
gem install sanitize --version 2.0.1 --no-rdoc --no-ri
gem install shoulda --version 2.11.3 --no-rdoc --no-ri
gem install sqlite3 --version 1.3.3 --no-rdoc --no-ri
gem install sqlite3-ruby --version 1.3.3 --no-rdoc --no-ri
gem install term-ansicolor --version 1.0.5 --no-rdoc --no-ri
gem install test-unit --version 2.0.9 --no-rdoc --no-ri
gem install trollop --version 1.16.2 --no-rdoc --no-ri
gem install uuidtools --version 2.1.2 --no-rdoc --no-ri
gem install webrat --version 0.7.3 --no-rdoc --no-ri
gem install will_paginate --version 2.3.15 --no-rdoc --no-ri
# Only if running windows
#gem install win32console --version 1.3.0 x86-mingw32 --no-rdoc --no-ri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment