GolfTalk is a real-time score-keeping web app for golf tournaments/scrambles. It allows users to update their score, see other teams' scores, and also talk trash to the other teams.
GolfTalk exists because I wanted a way to make our employer-sponsored golf outing a little more fun. Rather than having all the teams finish their rounds, and see how everyone did at the end, I thought it would make things more interesting if we could see the scores in real-time, and also talk a little trash along the way. :)
No installation necessary - just open the solution in Visual Studio. This project is written in C# using Entity Framework, but uses jQuery and SignalR for the score updates and trash talk messages, and a Boostrap layout so it is mobile friendly out on the course. It can be easily deployed to Azure or any other hosting service to get up and running in no time.
When running the solution for the first time you'll need to update the web.config to point to your SQL server, add your first EF migration, and update the database. From the package manager console, run:
add-migration initialMigration
update-database
The project itself is pretty self explanatory. DataAccess\GolfInitializer.cs
contains the seed method used to populate the database with the golf course information (par for each 18 holes, yards) as well as the team member information. I wanted this to be as simple as possible so there is no real authentication - a GUID is generated for each team, and that GUID is used with the link provided to each team member who wishes to use the app. For example - www.yoursite.com/golftalk?teamid={guid}
. This GUID is saved in a cookie so that when a user for that team enters a score, it is entered for the correct team.
Contributions are welcome!