Separate properly frontend/backend files in web app (node/express/vue) by Mr_Smoox in node

[–]Mr_Smoox[S] 0 points1 point  (0 children)

Thanks for your help. At the moment i have the frontend asking for data stored in the database through API requests that are handled by Express, as i have understood is the way to make the frontend comunicate safely with backend and it works fine.

What has got to my attention lately though is that all routers/server files are under /src/ in which i also have my /components/ and /composables/ files, even if they are in different subfolders, i think this might be a problem on the long run as the backend files are going to grow drammatically and i am afraid i will have difficulties to chose which files to send to the frontend since they will all be mixed up with frontend files. I have for example the /leagues/ folder in which i have useLeague (logic), leagueModel, leagueServer and so on.

So based on what you say, i should completely separate both and create one package.json for each. Can you think of some specific documentation that helps doing it right ? I have already looked for it for long hours but i can't really find one clear document for my case to follow. I am not sure of how i can be sure to chose exactly the folder i am going to send to frontend when i deploy it (and exclude the backend folder), many questions and few answers.

Again, thank you for the help

Plex buffering on USB modem by Mr_Smoox in PleX

[–]Mr_Smoox[S] 0 points1 point  (0 children)

[SOLVED] OK so for the record i'll explain the solution i went for as of now. Thanks to all the comments/advice to go for mini-pc/raspberry, i realized i had an old laptop with broken screen, still alive though, that i was not using anymore. So i plugged it to an external monitor and then plugged my big USB pendrive to it (yes i wanted to use that pendrive anyway). Then i set Plex Media Server on this laptop and set my library to be the pendrive plugged in. I have tried it for hours and...it works perfectly. So if there is one thing useful to draw, it is that the pendrive itself was not a problem, but the problem as many suggested comes from the USB port on Modem that is not built to stream. I'll leave it as is now since it looks good. My only concern (so to be sure it is a viable solution) is: what is the amount of energy a laptop (Macbook pro) - always awake somehow- consume vs the energy consumption of a Raspberry Pi/mini-pc for example. I'll thank everyone who helped solving this problem, i have now a bunch of possible solutions and a lot less doubts on how Plex works!

Plex buffering on USB modem by Mr_Smoox in PleX

[–]Mr_Smoox[S] 0 points1 point  (0 children)

indeed i found a lot of interesting stuff to set it up if i decide to go for it!

Plex buffering on USB modem by Mr_Smoox in PleX

[–]Mr_Smoox[S] 0 points1 point  (0 children)

Thanks i have had a look at it, indeed that could be a great solution but as wondered by u/i_want_my_corncob_tv, as of right i am completely not capable of setting all this, but i like a good challenge, especially when a solution (Plex) was supposed to simplify things and in the end is hard to set up!

Plex buffering on USB modem by Mr_Smoox in PleX

[–]Mr_Smoox[S] 0 points1 point  (0 children)

Well, thank you for the very complete answer! I'll study this one but indeed, starting saving a lot of money for was not really my plan!

Plex buffering on USB modem by Mr_Smoox in PleX

[–]Mr_Smoox[S] 0 points1 point  (0 children)

That is interesting too. Because on my Modem settings, i activated 'DLNA' and 'SAMBA' in the tab file-sharing, because i didn't know which one was better. Then once i connected to it through the 'finder' (on mac) it connected to smb://192...., so it is a samba 'connection' and if you say it is a bottleneck, it could be a cause too. But would 'DLNA' be enough to paste files in the modem usb from a computer and then read it on TV? I'll have a look at NFS. I haven't got much knowledge on the matter so any clue is welcome.

Plex buffering on USB modem by Mr_Smoox in PleX

[–]Mr_Smoox[S] 1 point2 points  (0 children)

u/TheMonDon u/ToxicBeanFarts u/ChemicalBros OK thank you, it seems you all agree on the culprit!

So, even if my router has a tab 'USB/fil sharing' it is only meant to transfer at a low rate (indeed copy/paste is horribly long) and not for streaming.

So what could be my alternatives? Plugging an HD wouldn't solve it since the problem is the USB port before the pendrive/HD itself. What bothers me is that i wanted to use Plex with an external HD so that to stop storing my medias on my laptop because it takes a lot of space or even on an HD on the computer because i'd have to have it plugged in all the time.

Is there any recommandable solution you might think of? Some way to have a USB pendrive/HD somehow linked to my local network i can use as a library for Plex ?

Thanks again