mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 23:46:27 +00:00
25 lines
714 B
Markdown
25 lines
714 B
Markdown
---
|
|
id: example_blazor
|
|
title: Blazor ServerSide
|
|
---
|
|
|
|
## 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.
|
|
|
|
![ASP Blazor Example - Home](/img/asp_blazor_example_home.png)
|
|
|
|
## Run it
|
|
|
|
Before running it, make sure you created an app in your [spotify dashboard](https://developer.spotify.com/dashboard/) and `https://localhost:5001` is a redirect uri of it.
|
|
|
|
```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
|
|
|
|
# Visit https://localhost:5001
|
|
```
|