GrooveFM is a simple online radio station created with Node.js and the Express web framework. Tune in to enjoy seamless music playback, synchronized across all connected clients.
- 🎧 Seamless Playback: The audio playback is designed to be smooth and continuous.
- ⏲️ Synchronized Timestamp: All clients hear the same audio part at any given time.
- 🔄 Auto-replay: The stream automatically starts over after reaching the end.
- 💾 Persistent State: The server retains its state across restarts.
Follow these steps to get GrooveFM up and running on your local machine:
-
Clone the Repository
git clone https://github.com/DarkTwentyFive/GrooveFM.git
-
Navigate to the Directory
cd GrooveFM
-
Install Dependencies
npm install
-
Initialize Timestamp File
If you want to initialize the timestamp, create a file named
timestamp.txt
in the root directory with the initial value (0
for instance).echo "0" > timestamp.txt
-
Upload Audio: Upload your audio file to the root directory of the project and name it
music.mp3
. -
Set Audio Duration: Open
index.js
and locate the following line:const audioDuration = 0; // audio file duration
Replace
0
with the actual duration of your audio file in seconds. -
Run the Server
npm run start
-
Open your browser and navigate to
http://localhost:3000
to start listening!
GrooveFM is open-source and is under the MIT License. See the LICENSE for more information.
Happy Listening with GrooveFM 🎶