This application displays results and statistics of sports competitions. It utilizes API-SPORTS to fetch data and covers three main sports: Football, NBA, and Formula 1. The application is secured with role-based protection using Spring Security and JWT tokens.
git clone https://github.com/YuzarsifKilic/sports-score-tracking
cd api
export DATABASE_USERNAME=mysql-username
export DATABASE_PASSWORD=mysql-password
export DATABASE_URL=mysql-database-url
export MONGODB_URI=mongodb-uri
export MONGODB_DATABASE=your-mongodb-database
export RAPID_API_KEY=your-sports-api-key
spring:
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
username: ${DATABASE_USERNAME}
password: ${DATABASE_PASSWORD}
url: ${DATABASE_URL}
jpa:
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
data:
mongodb:
uri: ${MONGODB_URI}
database: ${MONGODB_DATABASE}
sport-api:
x-rapidapi-key: ${RAPID_API_KEY}
./mvnw clean install
./mvnw spring-boot:run
Ensure you have Angular CLI installed:
npm install -g @angular/cli
Navigate to the frontend directory:
cd frontend
npm install
ng serve
sport-api:
x-rapidapi-key: ${RAPID_API_KEY}