Develop an elegant React.js Music Application.
Thank you Javascript Mastery for the guide 💪
You can see the demo of this project in the following link: https://jhy-music-app.netlify.app
To get started with development, you need to install few tools
-
git
gitversion 2.13.1 or higher. Download git if you don't have it already.To check your version of git, run:
git --version
-
node
nodeversion 16.15.1 or higher. Download node if you don't have it already.To check your version of node, run:
node --version
-
npm
npmversion 5.6.1 or higher. You will have it after you install node.To check your version of npm, run:
npm --version
To set up a development environment, please follow these steps:
-
Clone the repo
git clone https://github.com/JhymerMartinez/MusicApp.git
-
Change directory to the project directory
cd MusicApp -
Install the dependencies
npm install
If you get an error, please check the console for more information.
If you don't get an error, you are ready to start development.
-
Connect to the Deezer API
In order to consume the Deezer API you have to configure a proxy or if you prefer, you can use this Express JS app that we can use as a proxy .
-
Set the Environment Variables
Create a
.envfile in the root directory of the project. Add the following environment variables to the file:VITE_API_BASE_URL=http://localhost:8000
Note: The value of
VITE_API_BASE_URLshould be the URL of the proxy server you created in the previous step. -
Run the app
npm run dev
Project will be running in the browser.
Open http://localhost:3000 to view it in your browser.