Giter Club home page Giter Club logo

wrestling's Introduction

Wrestling Gambling App

Move to dumbledore it's a pain to upgrade necessary stuff to work on heroku

Betting Improvement Revamp

X upgrade bundler X install E2E testing framework X set up staging site X update Match model X add home_score, away_score, spread X remove total_score X update match form to handle these X update admin screen to input these nicely

  • stop being lazy and TDD these changes X add balance to user model X display on user index page X display in banner
  • create abstract bets table X {match_id, user_id, type, amount, wager, payout, open}
    • make payout a method for now, TBD on how to set X when createing a bet, validate user has money in their balance X transactionally subtract from user balance X when deleting a bet, give the user money back X create subclass MoneyLineBet X prevent deleting a bet from a closed match
  • create tournament betting page X show matches X show form to make MoneyLineBet
    • BET FORM SHOULD X popup and then delegate back to regular form to submit X allow you to adjust wager up to current balance X tell you how much money you will win X display cases for winning and losing

X !!!Testing party!!!

X handle closed matches in the UI X when the admin updates the scores for a match X update all bets for the match X if won, set payout X add payout to user balance X create subclass SpreadBet X create subclass OverUnderBet X create tournament leaderboard view X list of users with balance X live update as balances change X display current match X once current match is closed X display user avatars alongside current match X blow away old data on live site X deploy and test

  • more cypress tests

Further AddOns

  • create ledger of changes to user balance
  • make fatalaties an associated object w/avatar
  • animation to tournament show page when you receive more funds
  • slider to adjust amount to bet
  • upgrade rails
  • prop bets
  • fix overunder wager hack

College logos

https://www.sportslogos.net/teams/list_by_league/85/National_Collegiate_Athletic_Assoc/NCAA/logos/

https://www.sportslogos.net/leagues/list_by_sport/6/College/logos

Setting up development

create .aws file
AWS_ACCESS_KEY_ID=<wrastling_uploader 1pass>
AWS_SECRET_ACCESS_KEY=<wrastling_uploader 1pass>

./docker/tag_and_build.sh
./docker/start_app.sh
./docker/exec.sh
RAILS_ENV=development bundle exec rake db:migrate
RAILS_ENV=test bundle exec rake db:test:prepare
RAILS_ENV=development bundle exec rails webpacker:install
RAILS_ENV=test bundle exec rspec --fail-fast
RAILS_ENV=development bundle exec rake staging:users staging:tournament

tournament has_many :users (through matches, through bets) buy_in match_plus_bonus_style bonus_pct pot = buy_in * users single_match_pot = pot * (1-bonus_pct) bonus_pot = pot * bonus_pct

Prop Bet(Description, hit?) on_change: update all wagers Prop Bet Wager(user_id, prob_bet_id, hit?)

Prop Bets

  • Steveson backflip
  • PSU wins team title
  • Iowa wins team title
  • Billy Baldwin on the mic
  • Kyle Dake interviewed
  • Any winner by fall?
  • 2 champions reference god,JC in interview

wrestling's People

Contributors

goggin13 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

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.