The Football Match Web Application is designed for football enthusiasts who want to stay updated with match scores and information. This project utilizes the API-FOOTBALL API to fetch football match data and scores, which are then stored in Firebase. JavaScript is used to retrieve this data from Firebase and display it on the web application.
- Live Match Data: Fetch and display live football match scores and details.
- Firebase Integration: Store and retrieve football match data using Firebase.
- API Integration: Use API-FOOTBALL to get accurate and up-to-date football match information.
-
Clone the Repository:
git clone https://github.com/yourusername/football-match-web-application.git cd football-match-web-application
-
Setup Python Environment:
- Install Python dependencies:
pip install -r requirements.txt
- Install Python dependencies:
-
Configure Python Files:
db_helper.py
: Update the Firebase database URL:firebase_admin.initialize_app(cred, {'databaseURL' : 'your database url'})
fixtures.py
andstandings.py
: Replaceyour api key
with your RapidAPI key:headers = { "X-RapidAPI-Key": "your api key", "X-RapidAPI-Host": "api-football-v1.p.rapidapi.com" }
- Ensure the
cred.json
file contains your specific Firebase credentials.
-
Configure JavaScript Files:
fixtures.js
andstandings.js
: Update the Firebase configuration:const firebaseConfig = { //firebase config };
-
Run the Application:
- Start the Python server:
python main.py
- Start the Python server:
- The web application will automatically fetch match data from the API-FOOTBALL API and store it in Firebase.
- Live match scores and details will be displayed on the web application interface.
-
Python Configuration:
- Ensure the
db_helper.py
file contains your Firebase database URL. - Update the API keys in
fixtures.py
andstandings.py
with your RapidAPI key. - Verify that the
cred.json
file contains your Firebase credentials.
- Ensure the
-
JavaScript Configuration:
- Update the Firebase configuration in
fixtures.js
andstandings.js
with your Firebase project details.
- Update the Firebase configuration in
- Data Fetching: The application uses the API-FOOTBALL API to fetch football match data.
- Data Storage: Data is stored in Firebase for persistent access.
- Data Display: JavaScript retrieves data from Firebase and displays it on the web application.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or support, please contact [muhamedyildiriim@gmail.com].