Git Product home page Git Product logo

brickhack.io's Introduction

brickhack.io Build Status

The public facing site for Brick Hack.

Getting Started

Mac OS X

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

Windows

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

Resume Setup

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.

  1. 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.
  2. 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.
  3. 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=""

Deployment

Code pushed to the master branch will automatically build on Travis CI. Upon a successful build, Travis will deploy to OpenShift.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.