Changes between Version 2 and Version 3 of Nodejs
- Timestamp:
- 11/10/22 07:12:55 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Nodejs
v2 v3 1 1 = Node JS = 2 2 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]] 4 4 5 5 1. 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 … … 19 19 } 20 20 }}} 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 22 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. [[br]] 22 23 23 24 2. Then, create a server.js file that defines a web app using the Express.js framework: