joancefet / fantasy-manager

An open source self hosted fantasy manager.

Home Page:https://fantasy.lschaefer.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fantasy Manager

Description

This is meant to be an open source self hosted way to play a fantasy manager for some leagues. If you want to try this out use my hosted version which is located here. For any questions feel free to post a question in the discussions tab.

Features

  1. Completely free and open source.
  2. Many different leagues to use(Bundesliga, EPL, etc).
  3. Unlimited users and unlimited leagues.
  4. Customize starting money.
  5. Customize starred player bonus.
  6. Limit transfer amount(Note all users are allowed unlimited transfers while they have an empty squad).
  7. Ability to allow players to be bought by multiple users in the same league.
  8. Ranking tables for(Only in leagues):
    1. Top points for every matchday
    2. Top points in total
  9. Many ways to search through players:
    1. By price
    2. By total points
    3. By average points
    4. By the last match points(Requires the server to have been up for the last match day)
    5. By Club
    6. By Name
    7. By Position
  10. Download player data as json or csv
  11. See all historical player data(As long as the server was up).
  12. See historical squads for every league.
  13. And all of these features in a Modern Responsive UI available in a light and dark theme.

Roadmap

The official roadmap is on this kanban. If you would like to have a feature added you can request it in an issue or make it yourself and add a pull request.

Screenshots

Here is a sample screenshot for more go to the screenshots folder which is in the public folder or to the main page of my hosted version. Screenshot of League page Dark Theme Screenshot of League Page Light Theme

Production or Installation

There are 2 options to run this Sqlite and Mariadb. If you are unsure I would recommend sqlite it is faster. If you would like to install this without docker-compose you can use the Dockerless version.

Sqlite

  1. First download this file and edit the file to your preferences.
wget 'https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/docker/docker-compose.yaml'
  1. Then run this.
docker-compose up

Mariadb

  1. First download this file and edit the file to your preferences.
wget 'https://raw.githubusercontent.com/Lukasdotcom/fantasy-manager/main/docker/mariadb/docker-compose.yaml'
  1. Then run this.
docker-compose up

Dockerless

Required Tools:

  1. First clone this git repository
git clone -b stable https://github.com/lukasdotcom/fantasy-manager
  1. Then copy the .env.sample file located in the docker folder. Edit the values like mentioned in the file and then put the contents into a file called .env.local in the root folder of the project
  2. Run the command below and the webserver will be exposed on port 3000
npm run start
  1. To update this just run the command below in the git repository. Then stop the website and start it up again.
git pull

Development

Read the contributing guidelines.

Analytics

This service collects some simple analytics when you host this service that currently includes only the following information. This is collected daily and in aggregate so individual user data is never sent to the analytics server.

  1. serverID - This is a random id that is generated the first time the server boots.
  2. version - The version of the server.
  3. users - The number of users.
  4. activeUsers - The number of users that were logged in on that day.
  5. Then for every type of league (Bundesliga, EPL, etc) there are 2 pieces of data collected:
    1. Active Users - The number of Active Users in a league with that type.
    2. Users - The number of users in a league of this type.
  6. The total number of users using dark or light theme.
  7. From the active users the total of the dark and light theme.
  8. The total number of users using a certain language.
  9. From the active users the total of a certain language.

About

An open source self hosted fantasy manager.

https://fantasy.lschaefer.xyz

License:MIT License


Languages

Language:TypeScript 67.4%Language:JavaScript 32.1%Language:Dockerfile 0.3%Language:CSS 0.2%