A fantasy sport is a type of game where participants assemble imaginary teams composed of real players of a professional sport, with which they accumulate points throughout the season based on the players' performances in actual games.
Fantaze supports football fantasy gamblers around the world in the field of UEFA Champions League. By analyzing the players' performances (such as goals, assists, steals and fouls) and making conclusions based on them, we provide you with the ultimate team that will produce the most points possible, thus allow you to gamble smartly.
In addition, we take into account your football preferences. You can choose a desired football formation or pick some of your favorite players who would not necessarily have been selected by the algorithm.
Our football performances data was collected from API-Footabll (powered by rapid-API) and is stored using mongoDB.
- Clone/Download the zip file from the Fantaze repository to your local computer
- Install node modules
npm install
. - Install Python dependencies
npm install-requirements
- Start development server
npm start
. - Enter this URL - http://localhost:3000 to your web browser
The front-end is based on create-react-app.
The back-end is based on Flask.
.
├── src/ - React front-end
│ ├── constants.js - Defines the constants for the endpoints and port
│ |── index.jsx - React root component
│ └── components/ - React components for each page
│ └── App/ - React routing specifications
├── server/ - Flask server that provides API routes and serves front-end
│ ├── constants.py - Defines the constants for the endpoints and port
│ ├── fantasyData.py - Contains all static football data, such as seasons and teams
│ |── server.py - Configures Port and HTTP Server and provides API routes
│ |── mongo.py - Creating a MongoClient instance
│ └── More locic directories
└── README.md
- React - A JavaScript library for building user interfaces
- React Router - A standard routing library for React, with powerful features like lazy code loading and dynamic route matching
- Python - Python is an interpreted, high-level, general-purpose programming language
- Flask - Lightweight WSGI web application framework
- MongoDB - A document-based, distributed NoSQL database, built for modern application developers
- Material-UI - A popular React UI framework
- This project was created using Microsoft Web Template Studio.