Hello,
I have a general knowledge question, likely easy to answer for veterans of this forum ![]()
When I used dfx new to generate my project, it created the following architecture:
myapp/
ββ node_modules/
ββ src/
β ββ declarations/
β ββ myapp_backend/
β ββ myapp_frontend/
β β ββ node_modules/
β β ββ src/
β β ββ package.json
ββ .env
ββ package.json
When I run npm install within the myapp_frontend folder, it appears to install the packages in the root node_modules folder (right under myapp).
I donβt understand that and more generally, why do I need node_modules outside of my 2 canistersβ folders (myapp_backend and myapp_frontend) ? Will any code outside of those 2 folders get deployed when I run dfx deploy ? Maybe Iβm misunderstanding how the IC works: if my app has 2 canisters, when I deploy them, are they grouped within some sort of single container or nah theyβre just 2 independant containers that happen to work closely together ?
Thanks a lot and sorry if this is trivial.