Running the app

  • Clone the repoarrow-up-right to your local machine.

  • Ensure that you have the latest version of Flutter installed correctly.

    • Use flutter pub get to get any missing dependencies, if needed.

  • Navigate to the lib folder in the repo and create a file called config.dart.

  • Paste the following lines into config.dart :

    const  String clientID = 'CLIENT_ID';
    const  String clientSecret = 'CLIENT_SECRET';
    const  String redirectUri = 'https://induviduality.github.io/local-redirect/';
  • Replace CLIENT_ID with the Client ID and CLIENT_SECRET with the Client Secret we copied from the dashboard. Note that both the credentials must be enclosed in single quotes.

  • Run the app from the terminal using the command: flutter run --web-port=8080 Choose an available web browser to run on. Chrome is often fastest to run.

circle-info

For Evaluators: You can only login to your own Spotify account while running locally with your Client Credentials. Using my (Induja's) account will not work in that case.

If you want to test locally with my account then you must add my email as a registered user in your app's dashboard just as we did in the previous step.arrow-up-right

Why --web-port=8080?chevron-right

Last updated