/StravaDemo

Demo of a ASP .NET Core 3.1 Api that lets you upload an activity to Strava and computes the average activity speed using a domain driven approach.

Primary LanguageC#

Demo of a ASP .NET Core 3.1 Api with domain model.


This is a small demo of a .NET Core 3.1 API using RestSharp which gets some activity data from the Strava API. This solution is setup using a domain driven approach to compute some values regarding the average speed of recent sports activities. This is mainly a showcase of how to setup and decouple your domain model. A database is ommitted for sake of simplicity. Also, to the same end, I gave little attention to the authorization part of this demo. If you want to run this demo against your own Strava Account you will need to set your token secret in TokenRefresher.cs. Of course, never include these in your source control in a real development environment.