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.
- 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. - Ensure you have Git, Apache Maven, and Java 11 installed on your machine.
- 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. - Replace the
spring.security.oauth2.client.registration.yahoo.client-id
andspring.security.oauth2.client.registration.yahoo.client-secret
values inapplication-localhost.properties
with the ones from your app in Step (1). - 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. - 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:
- Use the Google Java Format plugin for formatting your code.
- Use SonarLint to check for code quality issues.
- A Postman collection for the Yahoo Fantasy Sports API is included in the root directory of this project. It might be helpful to you.
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].
- 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