╭━━━┳━━━┳━━━━┳━━━╮╭━╮╭━┳━━━┳━━━┳╮╱╭╮ ╰╮╭╮┃╭━╮┃╭╮╭╮┃╭━╮┃┃┃╰╯┃┃╭━╮┃╭━╮┃┃╱┃┃ ╱┃┃┃┃┃╱┃┣╯┃┃╰┫┃╱┃┃┃╭╮╭╮┃┃╱┃┃╰━━┫╰━╯┃ ╱┃┃┃┃╰━╯┃╱┃┃╱┃╰━╯┃┃┃┃┃┃┃┃╱┃┣━━╮┃╭━╮┃ ╭╯╰╯┃╭━╮┃╱┃┃╱┃╭━╮┃┃┃┃┃┃┃╰━╯┃╰━╯┃┃╱┃┃ ╰━━━┻╯╱╰╯╱╰╯╱╰╯╱╰╯╰╯╰╯╰┻━━━┻━━━┻╯╱╰╯
Authored by Max Brockabnk
Updated on March 10th, 2021
Welcome to Data Mosh! An audio visualizer to take your music listening experience to the next level. Currently there are two vizualization experiences to choose from, the ability to adjust the color of the visuals, and a song selection pulled from a custom Firebase Database.
Visit the live site here.
- A sleek, minimal UI
- A firebase database of audio files
- Reactive animation to selected music file
- Modern Web Browser
- Text Editor
- NodeJS / NPM
-
Click on the green
Code
button and copy the URL that shows up. -
Open up your computer's terminal and navigate to the desktop directory
cd Desktop
or any other directory you'd like the project to live in. -
Open this project in your text editor.
-
In the terminal navigate to the project's root directory and install node_modules with the command
npm i
. -
Next you'll have to set up a project with Google Firebase. Click here to see how.
-
Once you have set up your Firebase project, go to the Firebase console, and navigate to the
Storage
page. Here you will create a new folder calledmp3Files
and in it you'll put your audio files. -
Then you'll want to go to the
Project Settings
and find the code snippet with the objectfirebaseConfig
. You'll creat an.env
file in the root directory of the project, and each of the string values you will put in the file with a variable name starting withREACT_APP_FIREBASE
.
Example:
REACT_APP_FIREBASE_API_KEY = (your api key string here)
- Before you are able to actually pull and use the audio files from your Firebase Storage, you will need to adjust the CORS rules for the bucket. Click here to see how. I used the gsutil CLI mentioned in those instructions. The link for the gsutil CLI install instructirions is here.
- Finally to build and start the development server and view the project run the command
npm start
.
- JavaScript / React
- React-Bootstrap
- CSS
- Firebase
- Canvas API
- Web Audio API
- Copyright © 2020 Max Brockbank
- This software is licensed under the MIT license