Git Product home page Git Product logo

challengechampion's Introduction

ChallengeChampion

Deployed site

Installation

This application allows you to challenge your friends and turn them into enemies!

To get this app up and running, run these commands in console:

bundle install
rake db:create:all
rake db:migrate
rake db:test:prepare
rake db:populate

These commands do the following:
  1. Install all of the necessary gems listed in the Gemfile
  2. Create the test and development databases based on the configuration specified in config/database.yml
  3. Add all of the tables and table attributes to the database defined in the migration files in db/migrate
  4. Add all of the tables and table attributes to the test database

Next, create a .env file in the application's root directory. Enter the environment variable names & values. You can generate a key and secret pair at:
https://dev.twitter.com/apps

TWITTER_KEY= TWITTER_SECRET=


## Authors
* Melissa Holmes [@meltar](https://github.com/meltar)
* Kylie Stradley [@kstradley](https://github.com/kstradley)

challengechampion's People

Contributors

chaeokay avatar kyfast avatar meltar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kyfast chaeokay

challengechampion's Issues

User can challenge other users

-User can challenge other users by clicking "challenge" under another user's avatar
-challenges are assigned randomly

Winner is selected randomly

Winner is selected randomly
-during challenge each user is given a random number, the higher of the two is the winner

Run test suite with Travis

You should configure Travis to run your test suite for you. All pull requests will be automatically tested.

Here's a sample .travis.yml that will test your project against whatever version of rails is in your gemfile with ruby versions 1.9.3, 2.0.0, and 2.1.0.

script: "bin/rake --trace 2>&1"
bundler_args: "--binstubs --without documentation"
before_install:
  - gem --version
  - gem install bundler
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.0

You'll need to to https://travis-ci.org/ and login with your github account. Then activate CI on that repo. Then check in the file and push it to our master branch.

User can select a champion

When logging in for the first time

  • The user chooses between three generated options
  • The selected champion is saved to the database

Deploy app to Heroku

  • link git repo with the Heroku app "ChallengeMe" and deploy
  • acquire another Twitter key/secret pair with the Heroku callback route
  • set up environment variables with Heroku config
  • sign into app! ๐ŸŽ‰

Order the users

Order by:

  • nickname
  • highest win ratio
  • lowest win ratio
  • newest user
  • oldest user

This probably requires Javascript

Change root view

The app should display some landing page content when not signed in and the user's profile page when signed in.

Always redirect to the landing page when not signed in.

  • Create landing page
  • Make landing page the root when not signed in
  • Redirect to the landing page when signed in
  • When signed in, the root is your profile

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.