- .NET Core 3.0 (Download SDK from Here)
- For C#: Not required, but convenient to use an IDE like Visual Studio for Mac - Free, Visual Studio for Windows - Free, JetBrains Rider - Paid
-
To get an API key from setlist.fm:
Your API Key is displayed on the next page: -
To get an API key and secret from Spotify:
- Sign up for an account here *Skip this step if you already have an account with Spotify
- Sign in to the Developer Console here
- It should take you to your Dashboard. Click on the green button that says
Create a Client ID
- Step 2: Click
Noon the next step
- Step 3: Check appropriate boxes and continue
You Client ID should be displayed on the next page. Click on
Show Client Secretto view your secret key. Make note of these keys.Click the green
Edit Settingsbutton on the upper right hand corner. UnderRedirect URIs, addhttp://localhost:3000. Make sure to click the greenAddbutton, and the greenSavebutton on the bottom. -
Clone this repo and
cdinto the project directory -
To save these variables to your environment:
- Navigate to the project directory (the one housing the .csproj file) in your terminal (ie. If you're inside the root level
SpotSet.Apisolution directory containing theSpotSet.ApiandSpotSet.Api.Testsdirectory,cdonce more into theSpotSet.Apiproject directory), then run these commands to save each variable:
$ dotnet user-secrets set "SetlistApiKey" "<Your setlist.fm API Key>" $ dotnet user-secrets set "SpotifyApiKey" "<Your Spotify Client ID>" $ dotnet user-secrets set "SpotifyApiSecret" "<Your Spotify Client Secret>"- You could check that the keys have been saved properly by running
dotnet user-secrets list
- Navigate to the project directory (the one housing the .csproj file) in your terminal (ie. If you're inside the root level
-
Switch directory with
cd ..back into the solution directory -
To start the app:
$ dotnet run --project SpotSet.Api
Press ctrl + c to stop.
- To run unit tests:
$ dotnet test







