What is the best way for me to manage my app’s audio files? Where should I save them? How should I serve them?

  javascript, node.js, reactjs

I’ve made a React app that’s similar to Spotify (just for practice).

The app downloads audio files on click to the backend and saves them there.

Problem: I can’t play a file on the client – it’s in the backend!

Questions:

  • If I save the files in backend – how can I serve them to my client?

  • if I save the files in the client – how can I send and save them there?

  • Should I save the files in backend or front end? Eventually I might want to make an actual React Native app out of this.

Source: Ask Javascript Questions

LEAVE A COMMENT