Code Monkey home page Code Monkey logo

yahoo-fantasy-basketball's Introduction

yahoo-fantasy-basketball

Build Status Quality Gate Status Maintainability Rating Coverage Technical Debt

Table of Contents

Overview

https://yahoofantasy.warrencrasta.com

An application that calculates and displays various statistics that Yahoo doesn't show by default for Fantasy Basketball leagues. The ESPN equivalent is here.

If you liked this project, please consider starring the repository.

Local Setup

  1. Create an app in Yahoo Developer. Set the Redirect URI to https://localhost:8443/login/oauth2/code/yahoo. Choose Fantasy Sports: Read and Open ID Connect Permissions: Email and Profile from the permissions.
  2. Ensure you have Git, Apache Maven, and Java 11 installed on your machine.
  3. Clone this project. It is a Spring Boot project that you can run either in an IDE or on the command line. From the root directory of the project: mvn clean install. Ensure that you have the -Dspring.profiles.active=localhost VM option set.
  4. Replace the spring.security.oauth2.client.registration.yahoo.client-id and spring.security.oauth2.client.registration.yahoo.client-secret values in application-localhost.properties with the ones from your app in Step (1).
  5. Start the application. You need Spring Boot to run on HTTPS using a self-signed certificate (which the project does by default). A dummy self-signed certificate is included in the src/main/resources directory.
  6. In a browser, go to https://localhost:8443. Your browser might say that it is unsafe, but bypass those warnings.

If you're considering contributing to this project:

  1. Use the Google Java Format plugin for formatting your code.
  2. Use SonarLint to check for code quality issues.
  3. A Postman collection for the Yahoo Fantasy Sports API is included in the root directory of this project. It might be helpful to you.

Contributing

Any contributions to this project would be greatly appreciated. This project is a side hobby for me, so it may take a few days for your PR to be reviewed.

Contributions are welcome from engineers of all skill levels. If you have any questions or are interested in contributing, please submit a PR and/or e-mail me at [email protected].

Tech Stack

  • Data: Yahoo Fantasy Sports API
  • Back End: Java Spring Boot & Spring Framework for API. Spring Security for OAuth. MapStruct, Lombok
  • Front End: Thymeleaf, Bootstrap, HTML, CSS, JavaScript/jQuery, DataTables
  • Infrastructure: Travis CI for CI/CD pipeline. AWS S3 to host artifact. AWS CodeDeploy as deployment agent. Bash script to run the artifact as a process on AWS EC2 instance. AWS IAM to manage permissions among AWS services. AWS CloudFormation for managing infrastructure-as-code.
  • Monitoring: Google Analytics
  • Hosting: Namecheap to host domain name. AWS EC2 to host the Tomcat web server on the cloud
  • Code Quality: Sonar, Checkstyle for code style
  • Other: Git for version control, Apache Maven for build management

yahoo-fantasy-basketball's People

Contributors

wcrasta 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.