From 4eb127bf9f7445f08b8632668f1f3a1ac219f254 Mon Sep 17 00:00:00 2001 From: Pooranjoy Bhattacharya Date: Sun, 31 Dec 2023 00:47:37 +0530 Subject: [PATCH] Update CONTRIBUTING.md Setup Environment Variables --- CONTRIBUTING.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6f6cd89..d4b9b9f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,6 +28,20 @@ cd BeatBridge npm install ``` +- Setup Environment Variables + - Create a file `.env.local` in the root directory. + - Go to [Spotify Dashboard](https://developer.spotify.com/dashboard) and Login into your Spotify Account. + - Create an App and fill the required details like Name, Description, Website + - Make sure to add the Redirect URI to `https://localhost:5173` and check the following API + ![image](https://github.com/pooranjoyb/BeatBridge/assets/90945182/0b2e568e-20de-40bd-9f7f-b48740a1a2d4) + - Save the Details, Click on the App you just created and go to `Settings` + - Copy your `CLIENT_ID` and `CLIENT_SECRET` + - Add the following in the `.env.local` file. + - ```bash + VITE_CLIENT_ID=your_client_id + VITE_CLIENT_SECRET=your_client_secret + ``` + - Start the development server: ```bash