EuroSportHub is A Euro 2024 application built with Java designed to keep you updated with the latest live scores, team statistics, and match details. This application leverages cutting-edge technologies to provide real-time data and a seamless user experience.
- Live Scores: Real-time updates of ongoing matches.
- Team and Player Statistics: Detailed statistics for teams and players.
- Search Functionality: Search for specific teams or matches.
- Date Range Selector: Easily navigate through different match dates.
- Group Listings: View groups and teams participating in various leagues.
- User Authentication: Secure login and registration system.
- User Profile: Manage your personal profile and preferences.
- Java
- Spring Boot
- Spring Data JPA
- Spring Security
- MongoDB
- RestTemplate
- Maven
- Postman
- Git
- GitHub
-
DemoApplication.java
: The main entry point for the Spring Boot application. -
UserController.java
: Handles user-related HTTP requests. -
MatchController.java
: Manages match-related endpoints. -
AuthController.java
: Manages authentication and authorization endpoints. -
UserService.java
: Contains business logic for user operations. -
MatchService.java
: Contains business logic for match operations. -
SecurityConfig.java
: Configures Spring Security for the application. -
application.properties
: Configuration file for application settings.spring.data.mongodb.uri=mongodb://localhost:27017/eurosporthub spring.security.jwt.secret=mySecretKey LIVE_SCORE_API_URL = FOOTBALL_SCORE_API_URL LIVE_SCORE_API_KEY = YOUR_API_TOKEN_KEY LIVE_SCORE_API_SECRET = YOUR_API_SECRET_KEY
- Java 17
- Maven
- MongoDB
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/Moddic10/EuroSporthub---A-Football-Streaming-app.git cd EuroSportHub/demo
-
Database Setup:
Ensure you have MongoDB installed and running. Create a database named
euro_sporthub
. -
Environment Variables:
Create a
.env
file in the root of your project and add the following keys:LIVESCORE_API_KEY=your_api_key_here LIVESCORE_API_SECRET=your_api_secret_here DATABASE_URL=mongodb://localhost:27017/euro_sporthub
-
Install dependencies:
mvn clean install
-
Configure MongoDB in
application.properties
:spring.data.mongodb.uri=mongodb://localhost:27017/eurosporthub
-
Run the application:
mvn spring-boot:run
- Login:
POST /api/auth/login
- Register:
POST /api/auth/register
- Get Live Matches:
GET /api/matches/live
- Get Match Details:
GET /api/matches/{matchId}
- Get Teams:
GET /api/teams
- Get Team Details:
GET /api/teams/{teamId}
To get live matches, you can use the following cURL command:
curl -X GET "http://localhost:8080/api/matches/live" -H "accept: application/json"
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Your Name - Muhammad Said
Project Link: https://github.com/Moddic10/EuroSportHub