Page History
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
...
...
...
Structure of a Node.js Service Repository
A Node.js service repository has to be a ZIP file containing at least two elements:
- A file package.json containing some service information the E2E Bridge needs for managing the service.
- All JavaScript source code and resources.
If your Node.js service needs additional modules (libraries), you need to install all modules locally and include the sub-folder node_modules. You cannot install modules globally to the E2E Bridge Node.js.
You can use 'npm install' to install those additional modules (see Deploying a Node.js Service Repository via the E2E Bridge).
Structure of package.json
The following json elements are required in the file package.json:
Code Block | ||
---|---|---|
| ||
{
"name": "HelloWorld",
"version": "0.0.1",
"description": "Hello world HTTP server",
"scripts": {
"start": "node server.js"
},
} |
...
...
...
...
...
Additional json elements can be added to package.json as needed (e.g. for adding packages/libraries), but will be ignored by the E2E Bridge.
...
...
Overview
Content Tools