From b6cd52db2d4952b9017b116c7a9744c72c4d69a7 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 1 Aug 2025 18:04:59 +0200 Subject: [PATCH 1/3] Added spotify api notes --- Spotify.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Spotify.md diff --git a/Spotify.md b/Spotify.md new file mode 100644 index 0000000..dfbc74e --- /dev/null +++ b/Spotify.md @@ -0,0 +1,31 @@ + +# How the Spotify API registration works + +[Spotify Docs](https://developer.spotify.com/documentation/web-api/tutorials/getting-started#create-an-app) + +## Creating an App with their developer console + +https://developer.spotify.com/dashboard + +*App* name: Serena +*App description*: open source radio station emulator to get the vibe right +*redirect URI*: https://localhost:3000 + +## Requesting an Access Token + +```Bash +curl -X POST "https://accounts.spotify.com/api/token" \ + -H "Content-Type: application/x-www-form-urlencoded" \ + -d "grant_type=client_credentials&client_id=your-client-id&client_secret=your-client-secret" +``` + +Our Codes: +Client: +e1274b6593674771bea12d8366c7978b +Client Secret: +07a3440d8d4b4fbe9d736a48df079085 + +Resulting access token is valid for **One Hour** + +Access Token: +BQAtYzlcWAvIdAEIE38FOnzWbUuXWm-XRYXB7DBe1xYUSqonVGDi4_H-9pWKbhexZ-ePP8uQSe-9VNaz05gCJq549tI3EFT3UoFvcUcBvwtQGK3i0dBh2sQi7bohCgDBIGcnzADcd-Y From 662a530d899fd09a060d67cfb13e86ce6babec49 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 1 Aug 2025 18:28:25 +0200 Subject: [PATCH 2/3] Changed components folder to screens --- Spotify.md => frontend/Spotify.md | 0 frontend/src/App.jsx | 6 +++--- frontend/src/{components => screens}/CreateStation.jsx | 0 frontend/src/{components => screens}/Home.jsx | 0 frontend/src/{components => screens}/JoinStation.jsx | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename Spotify.md => frontend/Spotify.md (100%) rename frontend/src/{components => screens}/CreateStation.jsx (100%) rename frontend/src/{components => screens}/Home.jsx (100%) rename frontend/src/{components => screens}/JoinStation.jsx (100%) diff --git a/Spotify.md b/frontend/Spotify.md similarity index 100% rename from Spotify.md rename to frontend/Spotify.md diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 155ad47..a84212c 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,8 +1,8 @@ import React from 'react'; import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; -import Home from './components/Home'; -import CreateStation from './components/CreateStation'; -import JoinStation from './components/JoinStation'; +import Home from './screens/Home'; +import CreateStation from './screens/CreateStation'; +import JoinStation from './screens/JoinStation'; import './App.css'; function App() { diff --git a/frontend/src/components/CreateStation.jsx b/frontend/src/screens/CreateStation.jsx similarity index 100% rename from frontend/src/components/CreateStation.jsx rename to frontend/src/screens/CreateStation.jsx diff --git a/frontend/src/components/Home.jsx b/frontend/src/screens/Home.jsx similarity index 100% rename from frontend/src/components/Home.jsx rename to frontend/src/screens/Home.jsx diff --git a/frontend/src/components/JoinStation.jsx b/frontend/src/screens/JoinStation.jsx similarity index 100% rename from frontend/src/components/JoinStation.jsx rename to frontend/src/screens/JoinStation.jsx From d7c80f4d33a6b74ca63839e36bac9e4f5bdac3c2 Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 1 Aug 2025 18:32:04 +0200 Subject: [PATCH 3/3] Fixed imports --- frontend/src/App.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 5c7694f..7b0b635 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -3,6 +3,7 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import Home from './screens/Home'; import CreateStation from './screens/CreateStation'; import JoinStation from './screens/JoinStation'; +import StationPage from './screens/StationPage'; import './App.css'; function App() {