Changes between Version 2 and Version 3 of Nodejs


Ignore:
Timestamp:
11/10/22 07:12:55 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Nodejs

    v2 v3  
    11= Node JS =
    22
    3  * ref[https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ here]
     3 * ref[https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ here][[br]]
    44
    551. First, create a new directory where all the files would live. In this directory create a package.json file that describes your app and its dependencies: file package.json as following
     
    1919}
    2020}}}
    21 With your new package.json file, run npm install. If you are using npm version 5 or later, this will generate a package-lock.json file which will be copied to your Docker image.
     21
     22With your new package.json file, run npm install. If you are using npm version 5 or later, this will generate a package-lock.json file which will be copied to your Docker image. [[br]]
    2223
    23242. Then, create a server.js file that defines a web app using the Express.js framework: