A React app that uses the Spotify API to display your top artists and tracks. Made with Create React App and in conjunction with a Node.js backend and compatible with both desktop and mobile devices.
- Clone the repo
git clone
- Install NPM packages
npm install
- Create a
.env
file in the root directory and add the following:REACT_APP_CLIENT_ID=your_client_id REACT_APP_REDIRECT_URI=http://localhost:3000/statify-react-app # or your frontend URI, must be the same as the one in your Spotify Developer dashboard REACT_APP_API_BASE=http://localhost:4000/api # or your backend URI REACT_APP_SCOPE = "user-top-read user-read-recently-played"
- Start the app
npm start
- Follow the instructions in the Node.js backend repo
- Open http://localhost:3000 to view it in the browser.
- Click the login button to log in with your Spotify account.
- Click the top artists, top tracks or top genres button to display your top artists, tracks and genres, respectively.
- Click the logout button to log out of your Spotify account.
- Add a recently played page
- Add history to top tracks, artists and genres pages
- Deploy the React app to a hosting service (likely Github Pages, hence the project name /statify-react-app being included in the base URL) and the Node.js backend to a server
Distributed under the MIT License. See LICENSE
for more information.