Skip to content

About

Small ASP.NET api that tracks sport games.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

SportGamesAPI

A simple ASP.NET app that creates an API-interface to manage the scoring of sport games involving two teams. Originally designed to run on Azure Cloud -services.

The repository includes a Client app as a submodule. A separate repo for the client can be found here.

A live demo can be found here along with API-usage documentation.

Setup

Copy the repo to your system. You will need to setup a database for storing the sport games.

You can initialise the required database table(s) with the init_db.sql file found within the repo.

To establish a database connection in a local environment, you must define the connection string for the database with the following commands in the project:

dotnet user-secrets init
dotnet user-secrets set ConnectionStrings:SportGameDb "<your-connection-string>"

Once done, you should be able to run the application. By default the app will run at https://localhost:7175/

Testing

The solution contains a project called SportGameApiTests. Open the solution in Visual Studio, and run tests in the project.

About

Small ASP.NET api that tracks sport games.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages