This is a small audio player project I did originally as a code challenge for Brain.fm.
Goal of the project was to create a simple audio player. The app presents you with 3 mental states.
- Choose a mental state and click on it.
- The audio player will show and start playing automatically.
- Skip forward and back through tracks (3 tracks for each mental state).
- Skip forward or backwards 15 seconds.
Audio files are completely in memory on the backend. No database was created for this mini project.
- Clone down the back-end repo.
- Navigate to the back-end repo's location on your machine.
- Run
rails s
command from command line. - The server will run on
http://localhost:3000
. If it doesn't due to your personal rails settings, you'll need to change the base url for the request in the front-end app. - Back-end needs to be running in order for the front-end app to successfully work.
- Clone down the front-end repo.
- Navigate to the front-end repo's location on your machine.
- Run
npm start
from command line. - In your internet browser, navigate to
http://localhost:8080/
. - Follow the instructions from the How to Use section.