Skip to content

Sports prediction web app is my ‘wanna-be’ side project that I have never been able to finish. The project is based on React and I implemented Firebase to save data from the API there in order to save API calls.

Notifications You must be signed in to change notification settings

kremenovic/predictions-app

Repository files navigation

Side project - Sports prediction web app

Sports prediction web app is my ‘wanna-be’ side project that I have never been able to finish. The project is based on React and I implemented Firebase to save data from the API there in order to save API calls.

Table of contents

Overview

Side project based on React and implementing [https://www.api-football.com/](football API). They have other APIs such as basketball, baseball and it could be implemented in an all-in-one sports prediction application.

The challenge

The idea and challenge was to build a sports prediction web application (there’s a PWA) that would help sports bettors decide which game to bet on. Most people use the Flashscore application to see the stats like previous games and standings, but here they can see more than that.

Also, there are advice and tips that come from the API and I am going to show you in the screenshots all the data.

Besides predictions I wanted to implement in this project:

News Bankroll Chatroom Live streams (add streaming links User profile / Settings

Screenshot

Dashboard page

Clicking on the banner on the /dashboard page will initiate downloading/installation of the PWA.

Single game page - Overview

Single game page - Teams

Single game page - H2H

Single game page - Standings

Register w/PaypPal page

Built with

  • React
  • Firebase

Installation

Rename 'example_dot_env' file to '.env' file and update 'REACT_APP_API_URL' with your localhost URL.

npm install

This command installs a package and any packages that it depends on.

1. Create new Firebase project

Create new Firebase project, and copy/paste your web app's Firebase configuration in firebase.js file.

2. Update Firestore Database Rules

After that, you need to go to Firestore Database and update the rules:


rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=\*\*} {
allow read, write;
}
// match any doc in transactions collection
match /transactions/{transactionId} {
allow read, write: if request.auth.uid != null;
}
}

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Pages

  • /register
  • /dashboard

About

Sports prediction web app is my ‘wanna-be’ side project that I have never been able to finish. The project is based on React and I implemented Firebase to save data from the API there in order to save API calls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published