[IMPROVED] Documentación con instrucciones detalladas para iniciar y detener el servicio Node-RED
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
27b8b606fe
commit
db1f31ee46
2 changed files with 63 additions and 15 deletions
33
CHANGELOG.md
33
CHANGELOG.md
|
@ -1,23 +1,30 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
Todos los cambios notables en este proyecto se documentarán en este archivo.
|
||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
El formato está basado en [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
y este proyecto adhiere a [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [0.2.0] - 2025-03-23
|
||||||
|
|
||||||
### Added
|
### Añadido
|
||||||
- Initial project structure
|
- Configuración de Node-RED como servicio
|
||||||
- Node-RED integration
|
- Documentación mejorada en README.md
|
||||||
- Development guidelines in CLAUDE.md
|
- Instrucciones detalladas para iniciar y detener el servicio
|
||||||
|
- Actualización del archivo .gitignore para seguimiento de flujos y módulos personalizados
|
||||||
|
|
||||||
|
### Cambiado
|
||||||
|
- Estructura de directorios adaptada para Node-RED
|
||||||
|
- Actualización del README.md para reflejar que es un proyecto Node-RED
|
||||||
|
|
||||||
## [0.1.0] - 2025-03-23
|
## [0.1.0] - 2025-03-23
|
||||||
|
|
||||||
### Added
|
### Añadido
|
||||||
- Initial repository setup
|
- Estructura inicial del proyecto
|
||||||
- Basic project structure
|
- Integración con Node-RED
|
||||||
- Documentation structure
|
- Guías de desarrollo en CLAUDE.md
|
||||||
|
- Licencia privativa (LICENSE.md)
|
||||||
|
- Configuración inicial del repositorio
|
||||||
|
|
||||||
[Unreleased]: https://github.com/username/webservices/compare/v0.1.0...HEAD
|
[0.2.0]: https://github.com/username/webservices/compare/v0.1.0...v0.2.0
|
||||||
[0.1.0]: https://github.com/username/webservices/releases/tag/v0.1.0
|
[0.1.0]: https://github.com/username/webservices/releases/tag/v0.1.0
|
45
README.md
45
README.md
|
@ -31,10 +31,51 @@ webservices/
|
||||||
|
|
||||||
## 🚀 Uso
|
## 🚀 Uso
|
||||||
|
|
||||||
|
### 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`
|
||||||
3. Ejecute Node-RED: `node-red`
|
3. Cree el directorio de flujos: `mkdir -p flows`
|
||||||
4. Acceda a la interfaz de Node-RED en: http://localhost:1880
|
|
||||||
|
### Iniciar el Servicio
|
||||||
|
|
||||||
|
#### Modo Desarrollo
|
||||||
|
```bash
|
||||||
|
# Iniciar Node-RED en modo desarrollo (interactivo)
|
||||||
|
node-red --userDir ./flows
|
||||||
|
|
||||||
|
# Para especificar un puerto diferente
|
||||||
|
node-red --userDir ./flows -p 1881
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Modo Servicio (Producción)
|
||||||
|
```bash
|
||||||
|
# Instalar PM2 (si no está instalado)
|
||||||
|
npm install -g pm2
|
||||||
|
|
||||||
|
# Iniciar Node-RED como servicio
|
||||||
|
pm2 start node-red -- --userDir ./flows -p 1880
|
||||||
|
|
||||||
|
# Ver estado del servicio
|
||||||
|
pm2 status
|
||||||
|
|
||||||
|
# Ver logs
|
||||||
|
pm2 logs node-red
|
||||||
|
```
|
||||||
|
|
||||||
|
### Detener el Servicio
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Si se ejecuta en modo interactivo
|
||||||
|
Ctrl+C
|
||||||
|
|
||||||
|
# Si se ejecuta como servicio PM2
|
||||||
|
pm2 stop node-red
|
||||||
|
```
|
||||||
|
|
||||||
|
### Acceso
|
||||||
|
|
||||||
|
Acceda a la interfaz de Node-RED en: http://localhost:1880
|
||||||
|
|
||||||
## 🔍 Prerrequisitos
|
## 🔍 Prerrequisitos
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue