Damus
TKay profile picture
TKay
@TKay
There is something I can’t seem to comprehend.

If I am building an app that uses libraries. I’m installing the libraries on my computer, right?

Then I import the libraries to my app.

So if say my app is hosted on a server, do I also need to install the libraries on that host? Or does the app cart the parts it needs to run so it can do it independently without the library install?

I’m a little confused. 🤔

#asknostr
61🤙1
Turiz · 109w
You’re installing libraries in the source of the app to read locally. On server you do the same install the libs
Marks · 109w
Your dependency package manager would install them all on the server. (npm, pip, yarn) Typically shipping library code with your app code is poor practice unless you have a strong reason for it. Let the package manager do it for you.
HashTrash4Cash · 109w
Search static vs dynamic linking. tl;dr it depends on the language. Python, Java Script, are dynamically linked. Golang and some others are statically linked. C, C++ no simply answer, goes both ways.