Coder Social home page Coder Social logo

esportspredictor's Introduction

EsportsPredictor

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.

Set Up Your Own Local EsportsPredictor

Setup Instructions

Prerequisites

  • Visual Studio
  • A PandaScore API key (instructions below)

Initial Setup

  1. Fork this repo in GitHub
  2. Clone your forked repo and open it in Visual Studio

API Setup

  1. Create a PandaScore account
  2. Generate your personal PandaScore API key on the dashboard
  3. In Visual Studio, right-click the project and select 'Manage User Secrets'
  4. Copy the code below into your secrets.json file, pasting your API key (not including 'Bearer ')
  5. { "PandascoreToken": "YOUR PANDASCORE API TOKEN GOES HERE" }
  6. It should look like this:

Database Setup

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.

Run the App

You're all done!

esportspredictor's People

Contributors

sgrinstead avatar

Watchers

 avatar

esportspredictor's Issues

Players Show Page

As a user, when I click on a player's name, I am taken to a page that has information about that player.

Tournaments Index

As a user, When I click on Tournaments in the navbar, I see a page that says find upcoming tournaments, a dropdown list of games, and a button that says find.

Matches Show Page

When I click on View Match, I am taken to a page That shows Details about the match. I see The date for the match, team names and pictures, names of players that are links, and a button that says make prediction.

Teams Show Page

As a user, when I click on a team name, I am taken to a page that shows information about that team, and each player on the team.

Predictions Index

As a user, When I click my predictions or after I make a prediction, I am taken to a page that Lists my predictions and whether I guessed correctly or not.

Matches Index

As a user, when I click view matches on the upcoming tournaments page, I am taken to a page with a list of matches in that tournament. Each match has the names of the playing teams, the date, and a button labeled view match.

Predictions New Page

As a user, when I click make a prediction, I am taken to a page where I can choose a team I think will win. This prediction is added to the database.

Tournaments Upcoming Page

As a user, when I click the find button on the tournaments index, I am redirected to /tournaments/upcoming/{game}, then I see a list of upcoming tournaments for that game. Each tournament in the list has the tournament name, date, and a button to view matches.

Home Page

As a User, when I launch the app or click home on the navbar, I see information about the app and buttons to log in or continue as a guest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.