(For API practice)
✨ Visit deployed application here ✨
- Spotify API
- ReactJS
- Express.js
- JavaScript
- Tailwind CSS
- HTML
- npm packages:
- Install NodeJS in your operating system
- Install all of the dependencies listed above via command-line in terminal by entering
npm install
- Create a Spotify account, and then create a new app to retrieve a
Client ID
. Then enterhttp://localhost:3000/callback
underRedirect URIs
. - Create a
.env
file with the following variables:
CLIENT_ID=(replace this with your client ID)
CLIENT_SECRET=(replace this with your client secret)
REDIRECT_URI=http://localhost:3000/callback
REACT_APP_SPOTIFY_CLIENT_ID=(replace this with your client ID)
- Execute the following command in the root to compile the development build:
npm run develop
Enter npm run develop
at the root directory in terminal. This will start up the React app and initialize the back-end at the same time. The application will open automatically in your browser. Once the application loads, login with your Spotify account. Search for an artist or song within the search box at the top left corner of the screen. Let the music move you. 🎵
For any questions about this repository, please contact me at hayashi.demi@gmail.com.
Visit my GitHub to view more of my works at github.com/demivlkv!