Skip to content

An app for managing custom cylce race fantasy leagues. Explores cutting edge Blazor, net5.0 and c#9 tech and some nice .Net patterns.

Notifications You must be signed in to change notification settings

ghhv/StageRaceFantasy

 
 

Repository files navigation

Stage Race Fantasy

An app for managing custom cylce race fantasy leagues.

Project background and aims

This year I ran a Tour de France fantasy league for a group of friends and I created an Excel spreadsheet to manage the scoring. This worked well and largely automated the task of keeping the complex scoring table up to date. However, it was fairly laborious to update and I thought it would be a perfect candidate for a side project.

As well as solving the problem, I wanted to explore a few new things:

  • Blazor - A new front end framework from Mirosoft that alows writing web apps in C#.
  • C# 9 - The latest itteration of the C# language that has some cool features around immutability such as records that I wanted to try out.
  • Jason Taylor's Clean Architecture Template - I watched a few videos including this one by Jason and he had some really interesting ideas that I was eager to try.
  • Jason Taylor's Clean Testing example - After watching this video I was really interested in his idea of "sub-cutanous" testing.

Running it

This project uses some bleeding edge stuff such as net5.0 and C# 9. I have created the project using Visual Studio 2019 preview which should give you an F5 experience. If you don't have Visual Studio, you can probably just download the net5.0 sdk and run it from the command line.

The entry point project is StageRaceFantasy.Api. In Visual Studio:

  • Ensure StageRaceFantasy.Api is selected as the startup project
  • Hit F5
  • This starts debugging and should automatically open the application in a browser.

A note on the Database

The project uses a local (localdb)\\MSSQLLocalDB database server and the database is created and migrated when you start the project. If you are not using Visual Studio or this does not work then open up \StageRaceFantasy.Api\appsettings.Development.json and update ConnectionStrings.SqlDatabase to point at an SQL Server that you have availale.

References

Some references that I have learned and borrowed from:

About

An app for managing custom cylce race fantasy leagues. Explores cutting edge Blazor, net5.0 and c#9 tech and some nice .Net patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 78.5%
  • HTML 19.5%
  • CSS 2.0%