Skip to content

hyoyou/spotset_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpotSet API Build Status

Prerequisites

Setup Environment Variables

  • To get an API key from setlist.fm:

    • Sign up for an account here *Skip this step if you already have an account with setlist.fm

    • Once logged in, create an application here and fill out the form like below

    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

    You should see a modal pop up, it will consist of 3 steps. * Step 1: Enter app name and short description. Check off `Website`

    • Step 2: Click No on the next step

    • Step 3: Check appropriate boxes and continue

    You Client ID should be displayed on the next page. Click on Show Client Secret to view your secret key. Make note of these keys.

    Click the green Edit Settings button on the upper right hand corner. Under Redirect URIs, add http://localhost:3000. Make sure to click the green Add button, and the green Save button on the bottom.

  • Clone this repo and cd into 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.Api solution directory containing the SpotSet.Api and SpotSet.Api.Tests directory, cd once more into the SpotSet.Api project 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

Setup

  • Switch directory with cd .. back into the solution directory

  • To start the app:

$ dotnet run --project SpotSet.Api

Press ctrl + c to stop.

Running the Tests

  • To run unit tests:
$ dotnet test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages