Coder Social home page Coder Social logo

joeyagreco / dynasty-daddy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from g-sher/dynasty-daddy

0.0 1.0 0.0 21.09 MB

Fantasy Football tool that leverages KeepTradeCut data and ties it to Fantasy Leagues (Sleeper & MFL).

Home Page: https://dynasty-daddy.com

License: MIT License

Shell 0.01% JavaScript 1.89% Python 1.98% TypeScript 61.92% CSS 2.00% HTML 29.06% PLpgSQL 1.24% Dockerfile 0.21% SCSS 1.69%

dynasty-daddy's Introduction

Dynasty Daddy

This project is currently in Beta and is deployed to https://dynasty-daddy.com.

Dynasty Daddy is a webapp that integrates with fantasy platform apis and scrapes KeepTradeCut's player evaluations to create metrics on each owner's fantasy league.

Goal

The goal is to provide users with a frictionless way to see player value, team value, draft breakdowns, and more. When managing my teams I would constantly have to switch between multiple websites to figure out what moves I should make. I wanted to find a way to spend less time doing research and leverage the data in more ways than before. Thus Dynasty Daddy was born to help me beat my friends in fantasy easier!

Supported Platforms

Sleeper MyFantasyLeague

Architecture

Dynasty Daddy's front end is an angular 11 web application with an node express api connected to a postgres database. This database is populated using a python cron job that scrapes KeepTradeCut's player rankings once a day (since KeepTradeCut currently doesn't have a public api). For Sleeper & MFL's data, we use their public apis found in their documentation.

How to run locally

Requirements:

  • npm
  • Node
  • Postgres

First, clone repo and open up in your preferred IDE.

Database

  • Run scripts in /back-end/database/scripts directory to create database and insert data.

Front End

  1. Navigate to the front end project directory /front-end/fantasy-app/
  2. Run npm install and npm run start and the front end should spin up.

API

  1. Navigate to the project directory /back-end/express-api
  2. Copy the .env.example file renaming it to just .env. Then update the CONNECTION_STRING to point to the local db containing the data.
  3. Now, run npm install and npm run start and the api should spin up.

Future Improvements

  • Support other platforms like Yahoo, Fleaflicker, etc.
  • Machine learning on data to predict the best players to buy and sell.
  • Better draft predictor based on team needs
  • More team analytics
  • Better responsive/mobile experience
  • More value calculations (Dynasty Process, Fantasy Calc)

Packages

  • ng2-charts - chart.js with angular 11
  • Angular mat - for tables, and other styling components
  • javascript-color-gradient - color gradients
  • simple-statistics - statistics and probability calculations
  • angular2-query-builder - query builder for player comparison advanced search
  • ngx-device-detector - detects if using mobile device, tablet, or desktop
  • ngx-mat-select-search - custom mat select search box with dropdown
  • ngx-google-analytics - used to track user metadata and build reports on features
  • ng2-adsense - used to add google ads to the application to help pay server cost :)

Deployment

  • CI/CD using Github Actions to build and push images to docker hub when a PR to main is created.
  • The project is deployed on a DigitalOcean Ubuntu Droplet and uses docker compose to spin up images.
  • Watchtower monitors changes to Docker Hub and pulls new images every 30 seconds and redeploys them.

Credits

Jeremy Timperio - Creator, Full Stack Developer

Support Me Here

Twitter Join Community Badge Subscribe Support LinkedIn

Development Status

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors

dynasty-daddy's People

Contributors

jmtimper avatar

Watchers

 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.