Skip to content

mattmontgomery/formguide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form Guide

Do you remember a day when MLS hosted their own form guide? I do. I missed it, so I built it, and hopefully, I've made it better.

I've also added some more leagues. Fun!

Development

Front-end application

  • Powered by Node.js, minimum of 16.x.
  • Built with Next.js
  • Hosted in production on Vercel
  • Uses Husky for precommit and commit message linting
  • Two sources of data:
    • Most raw data is sourced from API-FOOTBALL on Rapid API, uses proxy API noted below in Back-end application.
    • XG data is sourced from American Soccer Analysis's open API

Back-end application

  • Powered by Node.js, minimum of 16.x
  • Hosted in Google Cloud Functions
  • Sources data from API-FOOTBALL on Rapid API.
  • Two functions: Form and Prediction

Development Setup

  • Register with API-FOOTBALL (I use their free tier) and set the proper values in a .env file
  • Run the Google Cloud Functions locally
    • APPLICATION={APP_NAME} npm start, where APP_NAME is one of form and prediction
  • Create a .env file with values shown in .env.default.
    • Reference where you have those Google Cloud Functions running in those environment variables.

Contributing

Want to contribute? Check out the contribution guidelines.

Contributors

About

An MLS form guide, because the league stopped providing one

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages