Compare commits
2 commits
b01d56f421
...
1afbbfeee8
Author | SHA1 | Date | |
---|---|---|---|
1afbbfeee8 | |||
2848ef8f87 |
8 changed files with 2850 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
||||||
"name": "node-red",
|
"name": "node-red",
|
||||||
"version": "4.0.9-git",
|
"version": "4.0.9-git",
|
||||||
"local": false,
|
"local": false,
|
||||||
"user": false,
|
"user": true,
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"junction": {
|
"junction": {
|
||||||
"name": "junction",
|
"name": "junction",
|
||||||
|
|
8
.node-red/.config.projects.json
Normal file
8
.node-red/.config.projects.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"projects": {
|
||||||
|
"webservices": {
|
||||||
|
"credentialSecret": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"activeProject": "webservices"
|
||||||
|
}
|
|
@ -15,6 +15,19 @@
|
||||||
"tours": {
|
"tours": {
|
||||||
"welcome": "4.0.9-git"
|
"welcome": "4.0.9-git"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"git": {
|
||||||
|
"globalUser": {
|
||||||
|
"name": "Mauro Rosero P.",
|
||||||
|
"email": "mauro@rosero.one"
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"name": "Mauro Rosero P.",
|
||||||
|
"email": "mauro@rosero.one"
|
||||||
|
},
|
||||||
|
"workflow": {
|
||||||
|
"mode": "manual"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,6 +7,14 @@
|
||||||
"info": "",
|
"info": "",
|
||||||
"env": []
|
"env": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "ae43dc9d802ec4d9",
|
||||||
|
"type": "tab",
|
||||||
|
"label": "Flow 1",
|
||||||
|
"disabled": false,
|
||||||
|
"info": "",
|
||||||
|
"env": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "772316e0710af934",
|
"id": "772316e0710af934",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
|
|
2804
.node-red/package-lock.json
generated
2804
.node-red/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nickcuper/node-red-contrib-html-pro": "~1.0.1",
|
"@nickcuper/node-red-contrib-html-pro": "~1.0.1",
|
||||||
|
"node-red": "~4.0.9",
|
||||||
"node-red-contrib-google-sheets-advance": "~0.0.7",
|
"node-red-contrib-google-sheets-advance": "~0.0.7",
|
||||||
"node-red-contrib-json2csv": "~0.0.3"
|
"node-red-contrib-json2csv": "~0.0.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -420,7 +420,7 @@ module.exports = {
|
||||||
|
|
||||||
projects: {
|
projects: {
|
||||||
/** To enable the Projects feature, set this value to true */
|
/** To enable the Projects feature, set this value to true */
|
||||||
enabled: false,
|
enabled: true,
|
||||||
workflow: {
|
workflow: {
|
||||||
/** Set the default projects workflow mode.
|
/** Set the default projects workflow mode.
|
||||||
* - manual - you must manually commit changes
|
* - manual - you must manually commit changes
|
||||||
|
|
21
README.md
21
README.md
|
@ -28,9 +28,8 @@ webservices/
|
||||||
├── docs/ # Documentación del proyecto
|
├── docs/ # Documentación del proyecto
|
||||||
├── .node-red/ # Directorio de configuración de Node-RED
|
├── .node-red/ # Directorio de configuración de Node-RED
|
||||||
│ ├── flows.json # Definición principal de flujos
|
│ ├── flows.json # Definición principal de flujos
|
||||||
│ └── flows_cred.json # Credenciales de flujos (no incluido en el repositorio)
|
│ └── settings.js # Configuración de Node-RED
|
||||||
├── node-red # Script para iniciar/detener el servicio
|
├── node-red # Script para iniciar/detener el servicio
|
||||||
├── nodes/ # Nodos personalizados para Node-RED
|
|
||||||
├── public/ # Archivos estáticos para la interfaz de usuario
|
├── public/ # Archivos estáticos para la interfaz de usuario
|
||||||
└── tests/ # Pruebas unitarias y de integración
|
└── tests/ # Pruebas unitarias y de integración
|
||||||
```
|
```
|
||||||
|
@ -40,18 +39,26 @@ webservices/
|
||||||
### Instalación Inicial
|
### Instalación Inicial
|
||||||
|
|
||||||
1. Instale las dependencias: `npm install`
|
1. Instale las dependencias: `npm install`
|
||||||
2. Configure las variables de entorno en `.env`
|
2. Configure las variables de entorno en `.env` (si aplica)
|
||||||
3. Cree el directorio de flujos: `mkdir -p flows`
|
|
||||||
|
|
||||||
### Iniciar el Servicio
|
### Iniciar el Servicio
|
||||||
|
|
||||||
#### Modo Desarrollo
|
#### Modo Desarrollo
|
||||||
```bash
|
```bash
|
||||||
# Iniciar Node-RED en modo desarrollo (interactivo)
|
# Iniciar Node-RED en modo desarrollo (interactivo)
|
||||||
node-red --userDir ./flows
|
node-red
|
||||||
|
|
||||||
# Para especificar un puerto diferente
|
# Para especificar un puerto diferente
|
||||||
node-red --userDir ./flows -p 1881
|
node-red -p 1881
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Modo con Proyectos (Recomendado)
|
||||||
|
```bash
|
||||||
|
# Iniciar Node-RED con soporte para proyectos
|
||||||
|
node-red
|
||||||
|
|
||||||
|
# Acceder a la interfaz y seleccionar el proyecto "webservices"
|
||||||
|
# en el menú de gestión de proyectos
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Modo Servicio (Producción)
|
#### Modo Servicio (Producción)
|
||||||
|
@ -60,7 +67,7 @@ node-red --userDir ./flows -p 1881
|
||||||
npm install -g pm2
|
npm install -g pm2
|
||||||
|
|
||||||
# Iniciar Node-RED como servicio
|
# Iniciar Node-RED como servicio
|
||||||
pm2 start node-red -- --userDir ./flows -p 1880
|
pm2 start node-red -- -p 1880
|
||||||
|
|
||||||
# Ver estado del servicio
|
# Ver estado del servicio
|
||||||
pm2 status
|
pm2 status
|
||||||
|
|
Loading…
Reference in a new issue