GithubHelp home page GithubHelp logo

tomerkeizler / fantaze Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 4.0 2.5 MB

Fantaze is a Football performances analysis web application for Fantasy sport, which supports Fantasy gamblers around the world. Developed with Python, Flask, React js, MongoDB.

JavaScript 84.35% HTML 0.70% Python 14.66% CSS 0.29%
fantasy-football uefa-champions-league reactjs react-router python3 flask-server mongodb javascript

fantaze's Introduction

Project Fantaze

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.

The single page application UI was developed with React js and Java Script.

The server-side API was developed with Python.

The client-server communication is done by a Flask based HTTP server.

Screenshots

Getting started page

Getting started page

Revealing the ultimate team lineup chosen by our algorithm

Revealing the ultimate team lineup chosen by our algorithm

Defining your football desires and preferences

Defining your football desires and preferences

Managing your preferences

Managing your preferences

Getting Started

  1. Clone/Download the zip file from the Fantaze repository to your local computer
  2. Install node modules npm install.
  3. Install Python dependencies npm install-requirements
  4. Start development server npm start.
  5. Enter this URL - http://localhost:3000 to your web browser

File Structure

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

Built with

  • 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.

fantaze's People

Contributors

noywolfson avatar tomerkeizler avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.