NYC Event Viewer
Switch branches/tags
Nothing to show
Clone or download
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
lib
public
test
vendor/assets
.env.sample
.gitignore
.irbrc
.pryrc
.rubocop.yml
.ruby-version
Gemfile
Gemfile.lock
README.md
README.rdoc
Rakefile
config.ru

README.md

kittyconcarne

Contents

  1. Setting up your local environment

Setting up your local environment

  1. Install depedencies from Homebrew

    Do not Use the postgres.app. There are occasionally gems that do not work correctly with postgres.app -- use the Homebrew version as shown here.

    $ brew install redis postgres

    Load Redis and PostgreSQL on boot and start them now:

    $ for service in redis postgresql; do
    > plist_file="$(brew list ${service} | grep '\.plist$')"
    > ln -sv ${plist_file} ~/Library/LaunchAgents
    > launchctl load ~/Library/LaunchAgents/"$(basename ${plist_file})"
    > done
  2. Create PostgreSQL Superuser Role and Database

    $ createuser -s kitty
    $ createdb kittyconcarne_development
  3. Install gems

    $ bundle install -j `sysctl -n hw.ncpu`
  4. Create database config file and databases

    $ cp ./config/database.yml.sample ./config/database.yml
    $ RAILS_ENV=development rake db:create db:seed

    Create your test database and setup:

    $ RAILS_ENV=test rake db:create db:seed
  5. Add required environment variables

    Copy required environment variables to a .env file in the project root.

    $ cp .env.sample .env