Git Product home page Git Product logo

brackets's Introduction

chron brackets

This is the site for the Duke Chronicle's annual March Madness bracket challenge. It is a Ruby on Rails application.

Setup

This rails application has been verified to work with ruby 2.3.0. Bower is also required. Once ruby and bower have been set up:

  • Install dependencies: bundle install
  • Run database migrations: rake db:migrate
  • Install frontend dependencies: rake bower:install

The server can be run locally with rails server.

At this point, the database should be empty. You can load seed data with rake db:seed, which loads data from db/seeds.rb. Alternatively, you can create an account and create data manually. It's easiest to create an account through the app. The user can be made an admin user in the rails console, like:

$ rails c
2.3.0 :001 > user = User.first
  User Load (0.2ms)  SELECT  "users".* FROM "users"  ORDER BY "users"."id" ASC LIMIT 1
 => #<User id: 1, email: "[email protected]", encrypted_password: "...", reset_password_token: nil, ...>
2.3.0 :002 > user.update(role: 'admin')
 => true

The admin console at /admin can be accessed when signed in as a user with an admin role.

Deployment

This application is currently deployed through Heroku. Contact Michael Lai to get access to the app used in production. We use a slightly modified buildpack for ruby apps with bower, which has already been set up in production.

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.