cayala5 / playtron

A simple web app for advanced control of my Spotify playlists
0 stars 0 forks source link

Deploy #10

Open cayala5 opened 3 months ago

cayala5 commented 3 months ago

Thinking about how to deploy this with the following goals:

My idea is to deploy the frontend as a static React site. The user will authenticate with Spotify with the necessary permissions to view and modify their playlists. The frontend will directly call Spotify's API to display their playlists. The actual logic of modifying the playlists will be implemented by a serverless function. To solve the problem of cold start lag, I'll send a request to it at login time, probably with the Spotify API tokens. Then the function will have time to wake up while a user browses their playlists. By the time the user has found the playlist they want to modify, hopefully the function is up and ready to do it.

Need to figure out how to deploy both the frontend static site and serverless function as cheaply as possible, but given the infrequent usage, it shouldn't be too hard.

cayala5 commented 1 month ago

I can run a web service on Render without adding a credit card, and then either deploy the frontend directly or use something different for it.