EsportsPredictor is an app where you can see information about upcoming professional video game matches, teams, and players. When viewing a match, you can make a prediction on who will win. Your predictions page keeps track of all the predictions you have made and updates to show if you were correct or not after the matches take place.
You can find the deployed app Here
You can view most pages as a guest, but in order to make a prediction you will need to create an account.
Setup Instructions
- Visual Studio
- A PandaScore API key (instructions below)
- Fork this repo in GitHub
- Clone your forked repo and open it in Visual Studio
- Create a PandaScore account
- Generate your personal PandaScore API key on the dashboard
- In Visual Studio, right-click the project and select 'Manage User Secrets'
- Copy the code below into your secrets.json file, pasting your API key (not including 'Bearer ')
- It should look like this:
![](https://private-user-images.githubusercontent.com/48660896/296046379-524db695-c6ed-45aa-8ea5-066f6d620af8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NTIzMjAsIm5iZiI6MTcyMzU1MjAyMCwicGF0aCI6Ii80ODY2MDg5Ni8yOTYwNDYzNzktNTI0ZGI2OTUtYzZlZC00NWFhLThlYTUtMDY2ZjZkNjIwYWY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDEyMjcwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU1MGY0YTA0N2YwZWQ0YmY0MmQ1MzAyYzkxODE2OWQ0OGFlZjFkZjZlNjZmNjhlMDk5YjE5YTVlMTg4MjBjYmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nnxNzjOwvR4G7PfqfH2RKlmplVcfjwzaK5jl2WsNlPo)
{
"PandascoreToken": "YOUR PANDASCORE API TOKEN GOES HERE"
}
![](https://private-user-images.githubusercontent.com/48660896/296050425-26be207a-160a-4a22-b6ed-44ad62bd1026.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NTIzMjAsIm5iZiI6MTcyMzU1MjAyMCwicGF0aCI6Ii80ODY2MDg5Ni8yOTYwNTA0MjUtMjZiZTIwN2EtMTYwYS00YTIyLWI2ZWQtNDRhZDYyYmQxMDI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDEyMjcwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhMWNlMTc4Y2E1NzUwNGFlNGZmZDlmZmQ0NTRiYTA3YWZmZDA1NDNmNjc5ZThlZDFmNGViODI1MjM1NThlNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.juGk6EM1DhZWr6vuNVkNzTzl5Gb8ZKWs8q0hzlO_emM)
This app is set up to use a local database inside Visual Studio. If you want to change this, you can change the connection string in appsettings.json
The necessary migrations for the database are already set up. You can either run the application and click apply migrations when prompted or run the update-database command in the package manager console.
You're all done!