Discover your listening trends.
Bravado lets you view your top artists and tracks anytime, anywhere. No need to wait for Spotify Wrapped!
Bravado is a web application that allows you to view your top artists and tracks on Spotify. You can filter by the following time periods:
- All Time
- Past 6 Months
- Past Month
The app was built with React + Redux and makes use of the Spotify Web API.
In order to run the app locally, you will need to have Node.js version 10 or higher installed. To check which version of Node you are using, you can run the following command.
node -v
If you want to run the app locally and/or deploy it to a server, you will need a Spotify account.
You can run the following commands to clone the repository and navigate into the project directory.
git clone https://github.com/zachsvanhandel/bravado.git
cd bravado
Follow the steps below to register a new Spotify app.
-
Log in to the Spotify Developer Dashboard
- If this is your first time using Spotify Developer, you will be prompted to accept the terms of service and connect your Spotify account
-
Register your app
- Click the CREATE AN APP button, add a name and description for your app, accept the terms of service, and click the CREATE button
-
Add redirect URI
- Click the EDIT SETTINGS button, then go to the Redirect URIs section and add the url
http://localhost:3000/login
- Click the EDIT SETTINGS button, then go to the Redirect URIs section and add the url
-
Copy the client ID for your app
- Copy your app's client ID, as you will need it to run and/or build the app
Before you can run the app, you will first need to install its dependencies by running the following command.
npm install
Once the dependencies are installed, run the command below to copy .env.example
and create a new file named .env.development.local
. Add your app's client ID as the value for REACT_APP_CLIENT_ID
in the newly created file.
cp .env.example .env.development.local
To start the app, run the command below.
npm start
First, run the command below to copy .env.example
and create a new file named .env.production.local
. Add your app's client ID as the value for REACT_APP_CLIENT_ID
in the newly created file.
cp .env.example .env.production.local
Finally, you can run the command below to generate a build/
directory with static files that can be deployed to a server.
npm run build
Copyright 2020 Zach Van Handel. Code released under the MIT license.