All Projects → nmelhado → league-page

nmelhado / league-page

Licence: MIT license
Create a custom league page for your Sleeper fantasy football league!

Programming Languages

Svelte
593 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to league-page

ff
A fantasy football draft assistant with projections from ESPN, CBS, and NFL
Stars: ✭ 30 (-42.31%)
Mutual labels:  fantasy-football, football
fantasy-tools
A suite of tools for fantasy football players
Stars: ✭ 37 (-28.85%)
Mutual labels:  fantasy-football, football
FPLbot
A bot made for /r/FantasyPL
Stars: ✭ 54 (+3.85%)
Mutual labels:  fantasy-football, football
fplscrapR
This package enables those interested in Fantasy Premier League to perform detailed data analysis of the game, using the FPL's JSON API. The fplscrapR functions help R users collect and parse data from the Official Fantasy Premier League website.
Stars: ✭ 64 (+23.08%)
Mutual labels:  fantasy-football, football
livescore-cli
commandline football (soccer) livescore and *news for linux/mac user
Stars: ✭ 63 (+21.15%)
Mutual labels:  football
ffscrapr
R API Client for Fantasy Football League Platforms
Stars: ✭ 55 (+5.77%)
Mutual labels:  fantasy-football
worldcup
Free open public domain football data for the World Cup (incl. Qatar 2022, Russia 2018, Brazil 2014, etc.) and World Cup Quali(fiers)
Stars: ✭ 530 (+919.23%)
Mutual labels:  football
fantasy-football-scoreboard
Display the score of your fantasy football team on a Raspberry Pi driven RGB LED matrix for maximum ease of disappointment
Stars: ✭ 43 (-17.31%)
Mutual labels:  fantasy-football
cartrolandofc
🎩 CartrolandoFC é um site para consultar os pontos parciais do seu time no Cartola FC.
Stars: ✭ 272 (+423.08%)
Mutual labels:  fantasy-football
fflr
Get ESPN fantasy football data in R
Stars: ✭ 17 (-67.31%)
Mutual labels:  fantasy-football
fantasy-premier-league
Fantasy Premier League Stats, Visualizations & Analysis. ⚽ 📊 📈
Stars: ✭ 31 (-40.38%)
Mutual labels:  football
Football-Analytics-With-Python
A repository for football analytics
Stars: ✭ 28 (-46.15%)
Mutual labels:  football
fflproject
Fantasy Football League Project
Stars: ✭ 32 (-38.46%)
Mutual labels:  fantasy-football
sports.py
A simple Python package to gather live sports scores
Stars: ✭ 51 (-1.92%)
Mutual labels:  football
football-peek
[JavaScript - NodeJS] Application to access football scores
Stars: ✭ 14 (-73.08%)
Mutual labels:  football
soccer-bookmaker-odds
Historical data of bookmaker odds for some of the major soccer European leagues.
Stars: ✭ 16 (-69.23%)
Mutual labels:  football
react-native-football
React Native Premier League Football App ⚽ 👟🏆🏅
Stars: ✭ 61 (+17.31%)
Mutual labels:  football
espana
Free open public domain football data (football.db) for España (Spain) / Europe - Primera División / La Liga, etc.
Stars: ✭ 64 (+23.08%)
Mutual labels:  football
worldfootballR
A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat and fotmob
Stars: ✭ 188 (+261.54%)
Mutual labels:  football
Football Prediction Project
This project will pull past game data from api-football, and use these statistics to predict the outcome of future premier league matches through machine learning.
Stars: ✭ 44 (-15.38%)
Mutual labels:  football
League Page logo

(Unofficial) Sleeper League Page Template

Generate a custom league page for your Sleeper fantasy football league in just a few steps
GitHub node GitHub top language Lines of code GitHub forks GitHub pull requests GitHub issues

League Page demo




If you and your league like League Page, please consider starring the repo and donating (and encouraging your league-mates to too!)
Buy Me A Coffee




Features

  • Up-to-date league information
  • Easy to navigate trade and waiver history
  • Awards and accolades
  • Records and rankings for every season
  • Current season power rankings
  • Previous drafts and upcoming draft preview
  • Season matchups
  • Manager bio pages
  • League constitution
  • Helpful fantasy football resources and news

  • Built using Svelte and SvelteKit
  • Desktop, Mobile and PWA compatible
  • League information generated from Sleeper API

Roadmap

  • Add integration tests
  • Cleanup repo
  • Test redraft leagues
  • Playoff matchups and current bracket
  • Dynasty power rankings
  • Hyperlink all manager references
  • Fix all css issues when actively resizing the window

Some real-life League Pages

Setup your own League Page

If you've never touched a line of code, use the Training Wheels Guide instead

  • Fork this repo
  • Go to /src/lib/utils/leagueInfo.js and replace your_league_id (line 2) and your_league_name (line 3) with your Sleeper league ID and league name. (Optionally, also fill out the dues, and dynasty fields): league ID instructions
  • Write your homepage text (league intro/bio) /src/lib/utils/leagueInfo.js (lines 9-14) homepage text
  • Next, fill out and uncomment (delete the // at the beginning of each line) the managers' object (lines 27 - 92), also located in /src/lib/utils/leagueInfo.js, there should be one object for each manager (for assistance, consult the Training Wheels guide) manager object manager rendering
  • Add corresponding images for managers to the /static/managers/ directory and make the sure the name matches with what was provided above
  • If you run into trouble adding managers, reference the Training Wheels' Manager section
  • Add blog capabilities with contenful
    • Make a free contentful account
    • Click on Content model in the top bar and create Blog Post (id: blog_post) and Blog Comment (id: blog_comment) content models that matches the specs below (All fields are required): content model comment model
      • Use sleeper your sleeper username for the author field when creating posts
    • Create a Content Management API key
    • For local development add a .env file to the root of your project and add the following variables
      • VITE_CONTENTFUL_ACCESS_TOKEN with the corresponding value obtained from contenful
      • VITE_CONTENTFUL_SPACE with your space ID, obtained from contenful
    • To add the variables for production, go to your project settings and add the corresponding keys (using the same names as above) to the environment variables section
    • For more detailed instructions, follow the Training Wheels blog instructions
    • Finally, set enableBlog to true in src/lib/utils/leagueInfo.js
  • Customize your league constitution /src/routes/constitution/index.svelte (remember to adjust the table of contents accordingly)

For local developing npm:

npm install
npm run dev --
npm run dev -- --host (to test on other devices locally)

For local developing with a container

npm run docker-run

To deploy on Vercel for free:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].