This project aims to predict Fantasy Premier League points for players using various data analysis and machine learning techniques.
This project is guided by GitHub Copilot, an AI-powered coding assistant that helps developers write code faster and with fewer errors.
The main goal of this project is to create a model that can accurately predict the points that players will score in the Fantasy Premier League. This can help fantasy football managers make better decisions when selecting their teams.
src/: Contains the source code for the frontend. components/: React components. hooks/: Custom React hooks. services/: Services for API calls. utils/: Utility functions. public/: Public assets and the index.html file. server.js: Backend server code.
- Node.js (v14 or higher)
- npm (v6 or higher)
-
Clone the repository:
git clone https://github.com/ryanhall23/fpl-predictor.git cd fpl-predictor
-
Install dependencies for all parts (root, frontend, backend):
npm install cd backend && npm install cd ../frontend && npm install cd ..
You can start both the backend and frontend together from the root directory:
npm start
- This will run the backend on http://localhost:5000 and the frontend on http://localhost:3000.
Alternatively, to run them separately:
- Start the backend:
cd backend npm start
- In a new terminal, start the frontend:
cd frontend npm start