Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS and DB link #6

Open
5 tasks done
buzuloiu opened this issue Nov 12, 2017 · 0 comments
Open
5 tasks done

AWS and DB link #6

buzuloiu opened this issue Nov 12, 2017 · 0 comments
Assignees

Comments

@buzuloiu
Copy link
Owner

buzuloiu commented Nov 12, 2017

Currently, the app can get songs from the DB, or get them from AWS s3. The preferred flows for up/download are:

Uploading

  1. Enter song info and file on form
  2. Song is uploaded to S3
  3. Webhook or whatever to download a URL for the song
  4. Store the URL for the song in the Song entry in the database

Streaming

  1. Load list of songs from DB
  2. when user clicks play, the song is fetched from AWS and streamed

we need:

  • a songs table with a file_url column
  • a way to stream from a URL
  • a way to pass the file from the upload form to the controller to be uploaded to S3
  • a way to get the URL back from S3 after uploading it
  • making sure than only admin users have access to the uploading endpoint
@buzuloiu buzuloiu self-assigned this Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant