Skip to content

addcninblue/codeology

 
 

Repository files navigation

README

This is the website for Codeology at UC Berkeley.

Before getting started, make sure you're running the latest MacOS, installed all the security updates, and installed all XCode developer tools. (open XCode-->Preferences-->Locations-->Command Line Tools, select XCode; and then xcode-select --install in Terminal).

If you do not have Ruby on Rails on your system, please follow the instructions at installrails.com.

Check out this repository to your local workspace (GitHub for Mac is recommended, or simply use git clone).

Next, install rbenv and add ruby-build to manage your Ruby versions and gems:

rbenv install 2.2.2
rbenv local 2.2.2
gem install bundler

You'll also need to have Homebrew and MySQL installed (This can be tricky on Mac OS X) because it's a dependency for the mysql2 gem:

brew install mysql

Finally, install the gems necessary for development, testing, and deployment:

bundle install

If you run into an error with incompatible Ruby Versions, check here and see if you need to update your ~/.bash_profile 's PATH accordingly).

If you have trouble installing libv8 on El Capitan, see here.

Make sure to run

rake db:setup

to initialize the website's internal database.

When developing on local, you need to instantiate a PG server instance in order to run Cucumber tests and start Rails on your local environment. The typical way to do this on Mac OS X is through

initdb /usr/local/var/postgres -E utf8

if you need to initialize a PG server instance, and

pg_ctl -D /usr/local/var/postgres -l logfile start

to start the server.

About

repo for codeology club's website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 56.7%
  • HTML 32.1%
  • CSS 8.6%
  • JavaScript 1.6%
  • CoffeeScript 1.0%