The public facing site for Brick Hack.
Install ruby, sqlite, and other required development environment tools.
$ brew install rbenv ruby-build rbenv-readline rbenv-gem-rehash rbenv-default-gems rbenv-binstubs
$ brew install sqlite3
Download & configure local environment, vendor everything style.
$ git clone [email protected]:codeRIT/brickhack.io.git
$ cd brickhack.io
$ rbenv install
$ bundle install --path vendor --local
$ bundle exec rake db:create db:migrate
Optionally, you can use Pow to host your local development environment. With it, you can visit http://brickhack.io.dev/
$ brew install pow
$ gem install powder
$ powder link
Afterwards, you can restart the server with powder restart
when needed.
If you choose not to use Pow, you can still initiate a local rails server with bundle exec rails server
and visit http://localhost:3000
Verify you have a unix console emulator. We recommend the full version of cmder.
Download & install RailsInstaller 3.0 (alpha) from http://railsinstaller.org/
Download & configure local environment, vendor everything style.
$ git clone [email protected]:codeRIT/brickhack.io.git
$ cd brickhack.io
$ gem install bundler
$ bundle install --path vendor --local
$ bundle exec rake db:create db:migrate
Start your local environment: bundle exec rails server
Resumes are stored locally in development and on Google Drive in production using the paperclip-googledrive gem. The below is to authorize production environments only. This is not required for local development.
- Follow the instructions on https://github.com/evinsou/paperclip-googledrive#google-drive-setup to retrieve the Client ID, Client Secret, Access Token, and Refresh Token.
- Retrieve the folder ID of the folder to upload resumes to, commonly found in the URL of Google Drive. Ensure this folder has public permissions set.
- Create the file
.env
in the root of the repository using the following template, filling in variables where appropriate:
GOOGLE_DRIVE_CLIENT_ID=""
GOOGLE_DRIVE_CLIENT_SECRET=""
GOOGLE_DRIVE_ACCESS_TOKEN=""
GOOGLE_DRIVE_REFRESH_TOKEN=""
GOOGLE_DRIVE_PUBLIC_FOLDER_ID=""
Code pushed to the master branch will automatically build on Travis CI. Upon a successful build, Travis will deploy to OpenShift.