2020-06-04 13:42:16 +01:00
---
id: example_blazor
2020-06-04 14:24:13 +01:00
title: Blazor ServerSide
2020-06-04 13:42:16 +01:00
---
2020-06-04 14:24:13 +01:00
2020-06-05 12:35:21 +01:00
import useBaseUrl from '@docusaurus/useBaseUrl';
2020-06-04 14:24:13 +01:00
## Description
Very similar to the [Blazor WASM Example ](example_blazor_wasm.md ), but runs code on the server side and pushes view updates to the client.
2020-06-05 12:35:21 +01:00
< img alt = "ASP Blazor Example - Home" src = {useBaseUrl('img/asp_blazor_example_home.png')} / >
2020-06-04 14:24:13 +01:00
## Run it
2023-05-27 20:42:31 +01:00
Before running it, make sure you created an app in your [spotify dashboard ](https://developer.spotify.com/dashboard/ ) and `https://localhost:5543` is a redirect uri of it.
2020-06-04 14:24:13 +01:00
```bash
# 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
2023-05-27 20:42:31 +01:00
# Visit https://localhost:5543
2020-06-04 14:24:13 +01:00
```