ekochman1 / NBA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NBA Fantasy App

this is a NBA fantasy app that will allow you to get access to all infomation about teams and players within the NBA and be able to create, join Fantasy Leagues and draft within them.

By Eddie Kochman, Jacob Curley, Ethan Chen

Currently Work in Progress

We are still working on this, all features are not yet complete

launch the EC2 Server

the username is ec2-user and the password should be included in the NBA folder in NBAkey.pem file

the address for the ec2 server: http://ec2-54-215-176-11.us-west-1.compute.amazonaws.com and enter "java -jar NBADraftProject-0.0.1.jar" into the terminal to run the server.

Access the http address from Google Chrome: http://ec2-54-215-176-11.us-west-1.compute.amazonaws.com

running the application through console

  1. navigate in terminal to the directory with the pom.xml file

  2. run mvn package

  3. in fileViewer go to the target folder of the project

  4. copy the NBADraftProject-0.0.1.jar file to the ec-2 server via an SSH protocol

  5. connect to ec-2 terminal

  6. type java -jar NBADraftProject-0.0.1.jar

  7. run the command

  8. Finally, go to your browser (preferably Google Chrome) and enter the ec-2 url----> http://ec2-54-215-176-11.us-west-1.compute.amazonaws.com

NOTE you don't have to run your own ec-2 instance. The URL provided should sufice because it should be optimized to run

using the application

Register a user, this user can be logged in again once you have registered them.

The homepage will have buttons and most importantly, a global chatroom.

Upon Joining, there would be no leagues, and no teams created yet, so you will need to go to "Create A League" in your homepage.

Insert all the parameters needed to create a league, and upon creating a sucessful league, it should redirect you to your homepage again.

From there you can see your team from the "My Teams" button in the Homepage. To join the draft, click on "Go to Draft".

The draft will begin when the Maximum amount of users have joined the league, and they all have chosen to join the draft.

You can now start your draft, click on players you want to draft, turns are enabled.

There is a league specific chat client in the draft window, and also a console log that shows the events of the draft. These are League Specific.

upon each user drafting 14 players(5 for their starting lineup and 9 for subs), the draft will automatically end and insert all of your picks into your table within a SQL server. Thus Concluding the live draft.

you cannot leave the draft once you start

To check the database and see your team: here is the database URL: nbafantasydb.cxa7g8pzkm2m.us-east-2.rds.amazonaws.com/NBAFantasy UN: root PW: Ethaneddie123

About


Languages

Language:CSS 42.0%Language:HTML 25.9%Language:Java 21.6%Language:JavaScript 10.6%