I got some free time and decided to see what a nodejs project is and how hard/easy it is to work with it compared to PHP. The following question immediately arose:
When I deploy a project through Docker, the size of the project folder on the computer is adequate (about 6 megabytes for a simple Hello World). If when creating a project I choose custom hosting or hosting on Heroku, then it will be necessary to install indecently many nodejs modules. Because of this, the project folder on your computer will take up 163 megabytes for a simple Hello World, the total number of installed modules will be 508…
Q: is this normal for nodejs projects? If so, do I understand correctly that these modules are necessary for the normal operation of the node server, and in the case of Docker, all the necessary environment is located in the container itself and therefore there is no need to install all these modules, and therefore the project folder takes up only 6 megabytes?
Last updated: