Spotify.NET/SpotifyAPI.Docs/docs/example_blazor.md
2020-06-05 19:31:08 +02:00

793 B

id title
example_blazor Blazor ServerSide

import useBaseUrl from '@docusaurus/useBaseUrl';

Description

Very similar to the Blazor WASM Example, but runs code on the server side and pushes view updates to the client.

<img alt="ASP Blazor Example - Home" src={useBaseUrl('img/asp_blazor_example_home.png')} />

Run it

Before running it, make sure you created an app in your spotify dashboard and https://localhost:5001 is a redirect uri of it.

# Assumes linux and current working directory is the cloned repository
cd SpotifyAPI.Web.Examples/Example.ASPBlazor
dotnet restore

SPOTIFY_CLIENT_ID=YourClientId SPOTIFY_CLIENT_SECRET=YourClientSecret dotnet run

# Visit https://localhost:5001