A paradox to be meditated upon that is used to train Zen Buddhist monks to abandon ultimate dependence on reason and to force them into gaining sudden intuitive enlightenment. -Merriam-Webster
- Make sure you have a Ruby gem manager installed (e.g. RVM or Rbenv). Use Homebrew if you don't.
- Use your gem manager to install the Ruby version specified in
.ruby-version
. - Install the Bundler gem with
gem install bundler
. If you're using Rbenv, run arbenv rehash
- Install project dependencies with
bundle install
. - Make sure you have Postgres installed. Use Homebrew or download the client if you don't.
bundle install
bundle exec rails s
- Navigate to
localhost:3000
in your browser
This project uses rspec, factory girl, database cleaner and faker for testing.
- Run
rspec
orbundle exec rspec
to execute all of the tests. - To run a particular test, run
rspec spec/path/to/test/my_test.rb
. You can append a line number like...my_spec.rb:33
to run a specific test.
- Make sure you have Postgres installed. Use Homebrew or download the client if you don't.
- Run
rake db:setup
to get started. - Run
rake db:test:prepare
to get the database up and started for testing.
The project uses the paperclip gem for image management.
In order to use Paperclip, you will need to install ImageMagick. If you have homebrew installed on OS-X you can run brew install imagemagick
. You can also download the binary releases of ImageMagick.
The project uses dotenv-rails to store environment variables.
- Copy the
.env.example
file to.env
. - Replace the values of the keys with the correct keys.
- Note that
.env
is excluded from git and should never be checked in or removed to the .gitignore file.
Copyright (c) 2015 Romeeka Gayhart, released under the MIT license