Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/surajv311/mymusicapp

A Music Player Web Application 🎶 built using ReactJS in the frontend and NodeJS in the backend. It uses Spotify's API to authenticate users and play music. 🎧
https://github.com/surajv311/mymusicapp

api nodejs npm reactjs spotify spotify-api spotify-web-api webapp

Last synced: 2 months ago
JSON representation

A Music Player Web Application 🎶 built using ReactJS in the frontend and NodeJS in the backend. It uses Spotify's API to authenticate users and play music. 🎧

Awesome Lists containing this project

README

        

## Music app using Spotify's API

The frontend is built using React integrated with
Node backend to parse Spotify API requests to
play music.


![Login](https://github.com/Surajv311/myMusicApp/blob/main/pics/1.png)

![Auth](https://github.com/Surajv311/myMusicApp/blob/main/pics/2.png)

![Search Music](https://github.com/Surajv311/myMusicApp/blob/main/pics/3.png)

----------------------------------------------------------

### To set up the project locally:

`Step 1`: Install dependencies using `npm i` in both client & server side.

`Step 2`: Got to [Spotify_Dashboard](https://developer.spotify.com/dashboard/) and create a new app.

`Step 3`: Make a note of the Client_Id & the Client_Secret.

`Step 4`: In the edit settings of your dashboard put the redirect uri as : `http://localhost:3000/callback`.

`Step 5`: Now got to your server dir. and create a `.env` file.

`Step 6`: In the file declare your Client_Id, Redirect_uri, Client_Secret as :

```
__REDIRECT_URI=http://localhost:3000/callback/
CLIENT_ID=(you made note of)
CLIENT_SECRET=(you made note of)

```

`Step 7`: To run the backend, use - `nodemon server.js`.

`Step 8`: To run the frontend, use - `npm start`.

`Step 9`: Done!.

----------------------------------------------------------