Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

salimr's avatar

Where to store videos and other assets

Hi guys,

So I'm a 4th year engineering student and me and a partner have to produce a test web application. The subject that we were given is an e-learning app (ex: udemy, coursera, skillshare,...). We decided to use a laravel api with a reactjs spa as the frontend.

My question for you guys today is which solution would be more optimized and give content to the user faster. Storing the course videos (which are uploaded via a form by the different teachers btw) in the frontend folder or storing them in the laravel api folder.

I'm honestly lost in this and my research on google and stackoverflow hasn't given me a clear info.

And another small question : I realised as I was testing the start of the app that my http requests to jwt authentification in the laravel api take a loot of time to give back a response between 900ms-8s could it be a problem with my code or just my extremelly slow internet connexion like 20kb download speed (even tho it is in localhost so technicaly it shouldn't be that)

Thank you guys in advance for your help.

0 likes
3 replies
catinodev's avatar

You can leverage services like Amazon's AWS/S3 to store and pull from a 'bucket' of video resources rather than have the files on the server, this provides relatively easy integration. If you can get away with it (depending on how complicated your homework project is), have teachers provide a Youtube or Vimeo url and persist that instead, then just embed the youtube video within the application.

salimr's avatar

That would be a good idea and I would agree with you if this was an actual project that we would host on a server and make money from. But this is just a school project from two broke engineering students who don't have the financial means to actually have it hosted.

Thanks for your reply :)

EDIT: didn't see what you wrote about youtube. That won't be possible the teacher specified that videos have to be added by teachers who are accepted by the administrator.

Prokosa's avatar

You can use Google Drive Api or rapidapi.com free for testing

Please or to participate in this conversation.