ezpm2gui 1.5.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +330 -295
  3. package/bin/ezpm2gui.js +10 -10
  4. package/bin/ezpm2gui.ts +51 -51
  5. package/bin/generate-ecosystem.js +36 -36
  6. package/bin/generate-ecosystem.ts +56 -56
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/server/config/cron-jobs.json +1 -0
  10. package/dist/server/config/project-configs.json +235 -236
  11. package/dist/server/config/remote-connections.json +3 -0
  12. package/dist/server/index.js +44 -3
  13. package/dist/server/routes/deployApplication.js +47 -45
  14. package/dist/server/routes/logStreaming.js +31 -24
  15. package/dist/server/routes/modules.js +55 -0
  16. package/dist/server/routes/pageAuth.d.ts +3 -0
  17. package/dist/server/routes/pageAuth.js +177 -0
  18. package/dist/server/routes/remoteConnections.js +13 -9
  19. package/dist/server/routes/remoteMetrics.d.ts +3 -0
  20. package/dist/server/routes/remoteMetrics.js +84 -0
  21. package/dist/server/services/ProjectSetupService.d.ts +1 -1
  22. package/dist/server/services/ProjectSetupService.js +25 -9
  23. package/dist/server/utils/metrics-history.d.ts +21 -0
  24. package/dist/server/utils/metrics-history.js +68 -0
  25. package/dist/server/utils/remote-metrics-db.d.ts +29 -0
  26. package/dist/server/utils/remote-metrics-db.js +134 -0
  27. package/dist/server/utils/remote-metrics-poller.d.ts +8 -0
  28. package/dist/server/utils/remote-metrics-poller.js +67 -0
  29. package/package.json +86 -73
  30. package/scripts/postinstall.js +36 -36
  31. package/src/client/build/asset-manifest.json +6 -6
  32. package/src/client/build/favicon.ico +2 -2
  33. package/src/client/build/index.html +1 -1
  34. package/src/client/build/logo192.svg +7 -7
  35. package/src/client/build/logo512.svg +7 -7
  36. package/src/client/build/manifest.json +24 -24
  37. package/src/client/build/static/css/main.9decb204.css +5 -0
  38. package/src/client/build/static/css/main.9decb204.css.map +1 -0
  39. package/src/client/build/static/js/main.28a4a583.js +3 -0
  40. package/src/client/build/static/js/main.28a4a583.js.map +1 -0
  41. package/src/client/build/static/css/main.2d095544.css +0 -5
  42. package/src/client/build/static/css/main.2d095544.css.map +0 -1
  43. package/src/client/build/static/js/main.17e17668.js +0 -3
  44. package/src/client/build/static/js/main.17e17668.js.map +0 -1
  45. /package/src/client/build/static/js/{main.17e17668.js.LICENSE.txt → main.28a4a583.js.LICENSE.txt} +0 -0
package/README.md CHANGED
@@ -1,295 +1,330 @@
1
- # EZ PM2 GUI
2
-
3
- A modern web-based graphical user interface for the PM2 process manager, built with TypeScript, Tailwind CSS, and React.
4
-
5
- ## Features
6
-
7
- - **Real-time process monitoring** - Keep track of all your PM2 processes in real-time
8
- - **Process management** - Start, stop, restart, and delete processes with one click
9
- - **System metrics dashboard** - Monitor CPU, memory usage, and uptime
10
- - **Enhanced log streaming** - View and filter logs from multiple processes simultaneously
11
- - **WebSocket for live updates** - Get instant updates without refreshing
12
- - **Process CPU and memory charts** - Visualize performance metrics over time
13
- - **Filter processes by status or name** - Quickly find the processes you need
14
- - **Dark/light mode** - Fully supported across all pages with Tailwind CSS
15
- - **Cluster management** - Easily scale your Node.js applications
16
- - **Application deployment** - Deploy new applications directly from the UI
17
- - **Ecosystem configuration** - Create and manage your PM2 ecosystem files
18
- - **PM2 modules support** - Manage and configure PM2 modules
19
- - **Cron Jobs** - Schedule and manage automated tasks with visual cron expression builder
20
- - **Remote Server Management** - Connect and manage PM2 on remote servers via SSH
21
- - **Advanced Monitoring Dashboard** - Real-time performance charts with health scoring
22
- - **Tailwind CSS UI** - Sleek, compact, and responsive design with consistent dark/light theming
23
- - **Fully typed with TypeScript** - Robust and maintainable codebase
24
-
25
- ## Detailed Features
26
-
27
- ### Process Monitoring
28
- Monitor all your PM2 processes in real-time with detailed information on CPU usage, memory consumption, uptime, and status. The intuitive interface makes it easy to identify issues at a glance.
29
-
30
- ### Remote Server Management
31
- Connect to and manage PM2 processes on remote servers via secure SSH connections:
32
- - Add multiple remote server connections with SSH credentials
33
- - View and manage processes on remote servers
34
- - Stream logs from remote processes in real-time
35
- - Execute PM2 commands on remote machines
36
- - Encrypted credential storage for security
37
-
38
- ### Cron Jobs
39
- Schedule and automate tasks using PM2's cron restart feature:
40
- - Visual cron expression builder with common presets
41
- - Support for Node.js, Python, Shell, and .NET scripts
42
- - Inline script editor or file-based execution
43
- - Enable/disable jobs without deleting them
44
- - View next execution times and job status
45
-
46
- ### Advanced Monitoring Dashboard
47
- Get deeper insights into your system and process performance:
48
- - Real-time performance charts for CPU, memory, and load
49
- - System health score calculation
50
- - Historical metrics tracking
51
- - Process alerts for high resource usage
52
- - Per-process performance visualization
53
-
54
- ### Application Deployment
55
- Deploy new Node.js applications to PM2 directly from the UI. Configure all the necessary options including:
56
- - Application name and script path
57
- - Working directory
58
- - Number of instances for load balancing
59
- - Execution mode (fork or cluster)
60
- - Auto-restart options
61
- - Memory threshold for restarts
62
- - Environment variables
63
-
64
- ### Cluster Management
65
- Easily scale your Node.js applications with the cluster management interface. Add or remove instances on the fly and switch between fork and cluster execution modes for optimal performance.
66
-
67
- ### Log Streaming
68
- View and filter logs from multiple processes simultaneously with the enhanced log streaming interface. Features include:
69
- - Real-time log updates via WebSocket
70
- - Filtering by process, log level, or content
71
- - Pausing and resuming log streams
72
- - Download logs for offline analysis
73
- - Floating log panel for remote process logs
74
-
75
- ### Ecosystem Configuration
76
- Generate and manage PM2 ecosystem configuration files directly from the UI. This makes it easy to set up complex application deployments and share configurations across your team.
77
-
78
- ### PM2 Modules
79
- Manage and configure PM2 modules to extend the functionality of your PM2 installation. Install, update, and remove modules with a few clicks.
80
-
81
- ### System Metrics
82
- Monitor key system metrics including:
83
- - CPU usage and number of cores
84
- - Memory usage and availability
85
- - System uptime
86
- - Load averages (1, 5, and 15 minutes)
87
-
88
- ### User Interface
89
- ezPM2GUI uses Tailwind CSS for a sleek, compact, and fully responsive interface:
90
- - Dark and light mode support across all pages
91
- - Consistent color theming with smooth transitions
92
- - Compact layout with small fonts and reduced spacing for information density
93
- - `PageHeader` and `LogStatusBar` reusable components for a consistent look
94
- - Configure dashboard refresh intervals and log display settings from Settings
95
-
96
- ## Installation
97
-
98
- ### Global Installation
99
-
100
- ```bash
101
- npm install -g ezpm2gui
102
- ```
103
-
104
- ### Local Installation
105
-
106
- ```bash
107
- npm install ezpm2gui
108
- ```
109
-
110
- ## Usage
111
-
112
- ### As a Command Line Tool (Global Installation)
113
-
114
- ```bash
115
- # Start the ezPM2GUI web interface
116
- ezpm2gui
117
-
118
- # Start on a specific port
119
- ezpm2gui --port 4000
120
-
121
- # Start bound to all network interfaces
122
- ezpm2gui --host 0.0.0.0
123
-
124
- # Generate a sample PM2 ecosystem config
125
- ezpm2gui-generate-ecosystem
126
- ```
127
-
128
- ### As a Module (Local Installation)
129
-
130
- ```javascript
131
- const ezpm2gui = require('ezpm2gui');
132
-
133
- // Start the server with default options
134
- ezpm2gui.start();
135
-
136
- // Or with custom options
137
- ezpm2gui.start({
138
- port: 3030,
139
- host: '0.0.0.0'
140
- });
141
- ```
142
-
143
- ### Access the UI
144
-
145
- Once started, open your browser and navigate to:
146
-
147
- ```
148
- http://localhost:3001
149
- ```
150
-
151
- ## Requirements
152
-
153
- - Node.js 16.x or later
154
- - PM2 installed globally (`npm install -g pm2`)
155
-
156
- ## Configuration
157
-
158
- ezPM2GUI uses environment variables for configuration:
159
-
160
- - `PORT`: The port to run the server on (default: 3001)
161
- - `HOST`: The host to bind to (default: localhost)
162
-
163
- ## Load Balancing with PM2
164
-
165
- ezPM2GUI provides an easy interface to manage PM2's load balancing capabilities:
166
-
167
- ### Setting Up Load Balancing
168
-
169
- 1. **Deploy a new application or modify an existing one**:
170
- - Set the number of instances to greater than 1 (or 0/-1 for max instances based on CPU cores)
171
- - Choose "Cluster" as the execution mode for optimal load balancing
172
-
173
- 2. **Manage your cluster**:
174
- - Use the Cluster Management section to scale instances up or down
175
- - Switch between fork and cluster execution modes
176
- - Reload all instances with zero downtime
177
-
178
- ### How Load Balancing Works
179
-
180
- PM2 provides built-in load balancing when you run your Node.js applications in cluster mode with multiple instances:
181
-
182
- - **Cluster Mode**: In this mode, PM2 uses Node.js's cluster module to create multiple worker processes that share the same server port
183
- - **Multiple Instances**: Incoming requests are automatically distributed across your instances
184
- - **Zero Downtime Reloads**: When updating your application, PM2 can reload instances one by one to avoid downtime
185
-
186
- ### Best Practices
187
-
188
- - For CPU-intensive applications, use a number of instances equal to the number of CPU cores
189
- - For I/O-intensive applications, you can use more instances than CPU cores
190
- - Always use cluster mode for load balancing to ensure port sharing between instances
191
- - Use the reload feature instead of restart for zero-downtime deployments
192
-
193
- ## Development
194
-
195
- See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed development instructions.
196
-
197
- ```bash
198
- # Clone the repository
199
- git clone https://github.com/thechandanbhagat/ezpm2gui.git
200
- cd ezpm2gui
201
-
202
- # Install dependencies and build
203
- ./install.sh # On Linux/macOS
204
- install.bat # On Windows
205
-
206
- # Start in development mode
207
- npm run dev
208
-
209
- # Build the application
210
- npm run build
211
-
212
- # Start the application (production mode)
213
- npm start
214
- ```
215
-
216
- ### Project Structure
217
-
218
- ```
219
- ezpm2gui/
220
- ├── bin/ # CLI entry points
221
- ├── dist/ # Compiled output
222
- ├── docs/ # Documentation
223
- ├── screenshots/ # Application screenshots
224
- ├── scripts/ # Build and utility scripts
225
- ├── src/ # Source code
226
- │ ├── client/ # React frontend
227
- │ │ ├── public/ # Static assets
228
- │ │ └── src/ # React components and logic
229
- │ │ ├── components/ # UI components
230
- │ │ └── types/ # TypeScript types for client
231
- │ ├── server/ # Express backend
232
- │ │ ├── routes/ # API routes
233
- │ │ └── utils/ # Server utilities
234
- │ └── types/ # Shared TypeScript types
235
- └── test/ # Test files
236
- ```
237
-
238
- ## Contributing
239
-
240
- Contributions are welcome! Please feel free to submit a Pull Request.
241
-
242
- 1. Fork the repository
243
- 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
244
- 3. Make your changes
245
- 4. Run the tests to ensure everything works
246
- 5. Commit your changes using our [commit guidelines](./docs/COMMIT_GUIDE.md)
247
- 6. Push to the branch (`git push origin feature/amazing-feature`)
248
- 7. Open a Pull Request
249
-
250
- ### Coding Style
251
-
252
- This project follows standardized TypeScript conventions and uses ESLint for code quality. Before submitting a pull request, please ensure your code follows these guidelines by running:
253
-
254
- ```bash
255
- npm run lint
256
- ```
257
-
258
- ## FAQ
259
-
260
- ### Q: How does ezPM2GUI differ from pm2-gui and PM2 Plus?
261
-
262
- A: ezPM2GUI is a modern, TypeScript-based alternative to pm2-gui with a more user-friendly interface and additional features. Unlike PM2 Plus, it's completely free and open-source, running locally on your server rather than in the cloud.
263
-
264
- ### Q: Can I use ezPM2GUI with PM2 running on a different machine?
265
-
266
- A: Yes, you can configure ezPM2GUI to connect to a remote PM2 installation. You'll need to specify the connection details in the application settings.
267
-
268
- ### Q: How do I generate an ecosystem file from my existing processes?
269
-
270
- A: Use the `ezpm2gui-generate-ecosystem` command-line tool, or visit the Ecosystem Config section in the web UI.
271
-
272
- ### Q: Can ezPM2GUI handle a large number of processes?
273
-
274
- A: Yes, ezPM2GUI is designed to handle dozens of processes efficiently. The UI is optimized to present large amounts of information in a digestible format.
275
-
276
- ### Q: Is ezPM2GUI secure?
277
-
278
- A: By default, ezPM2GUI binds to localhost for security reasons. If you expose the interface to other machines, consider adding authentication through a reverse proxy like Nginx.
279
-
280
- ## Related Projects
281
-
282
- - [PM2](https://github.com/Unitech/pm2) - The process manager that ezPM2GUI works with
283
- - [pm2-gui](https://github.com/Tjatse/pm2-gui) - The original inspiration for this project
284
-
285
- ## License
286
-
287
- ISC
288
-
289
- ## Credits
290
-
291
- Built by [Chandan Bhagat](https://github.com/thechandanbhagat) as a modern alternative to pm2-gui.
292
-
293
- ---
294
-
295
- **Note**: ezPM2GUI is not officially affiliated with PM2 or PM2 Plus. It's an independent tool that interfaces with the PM2 process manager.
1
+ # EZ PM2 GUI
2
+
3
+ A modern web-based graphical user interface for the PM2 process manager, built with TypeScript, Tailwind CSS, and React.
4
+
5
+ ## Screenshots
6
+
7
+ **Process Dashboard** live system metrics and every PM2 process at a glance:
8
+
9
+ ![Process Dashboard](ezpm2gui/screenshots/01-processes.png)
10
+
11
+ **Monitoring** real-time CPU, memory and uptime per process:
12
+
13
+ ![Process Monitor](ezpm2gui/screenshots/02-monitoring.png)
14
+
15
+ **Metrics (Live)** — rolling 1-hour sparklines per process, updated every 3 seconds:
16
+
17
+ ![Metrics Live](ezpm2gui/screenshots/12-metrics-live.png)
18
+
19
+ **Metrics (History)** — SQLite-backed CPU and memory charts with selectable time range:
20
+
21
+ ![Metrics History](ezpm2gui/screenshots/13-metrics-history.png)
22
+
23
+ **Deploy App** start new PM2 processes from a structured form:
24
+
25
+ ![Deploy App](ezpm2gui/screenshots/04-deploy-app.png)
26
+
27
+ **Cron Jobs** — schedule recurring tasks without touching crontab:
28
+
29
+ ![Cron Jobs](ezpm2gui/screenshots/08-cron-jobs.png)
30
+
31
+ **Settings** auto-saved preferences for refresh, logs, theme and security:
32
+
33
+ ![Settings](ezpm2gui/screenshots/11-settings.png)
34
+
35
+ > See the full visual walkthrough in [https://ezpm2gui.vercel.app/](https://ezpm2gui.vercel.app/) — every screen is annotated with a screenshot.
36
+
37
+ ## Features
38
+
39
+ - **Real-time process monitoring** - Keep track of all your PM2 processes in real-time
40
+ - **Process management** - Start, stop, restart, and delete processes with one click
41
+ - **System metrics dashboard** - Monitor CPU, memory usage, and uptime
42
+ - **Metrics page with live sparklines** - Per-process rolling 1-hour CPU and memory micro-graphs updated every 3s; switch to History tab for SQLite-backed long-term charts
43
+ - **Enhanced log streaming** - View and filter logs from multiple processes simultaneously
44
+ - **WebSocket for live updates** - Get instant updates without refreshing
45
+ - **Process CPU and memory charts** - Visualize performance metrics over time
46
+ - **Filter processes by status or name** - Quickly find the processes you need
47
+ - **Dark/light mode** - Fully supported across all pages with Tailwind CSS
48
+ - **Cluster management** - Easily scale your Node.js applications
49
+ - **Application deployment** - Deploy new applications directly from the UI
50
+ - **Ecosystem configuration** - Create and manage your PM2 ecosystem files
51
+ - **PM2 modules support** - Manage and configure PM2 modules
52
+ - **Cron Jobs** - Schedule and manage automated tasks with visual cron expression builder
53
+ - **Remote Server Management** - Connect and manage PM2 on remote servers via SSH
54
+ - **Advanced Monitoring Dashboard** - Real-time performance charts with health scoring
55
+ - **Tailwind CSS UI** - Sleek, compact, and responsive design with consistent dark/light theming
56
+ - **Fully typed with TypeScript** - Robust and maintainable codebase
57
+
58
+ ## Detailed Features
59
+
60
+ ### Process Monitoring
61
+ Monitor all your PM2 processes in real-time with detailed information on CPU usage, memory consumption, uptime, and status. The intuitive interface makes it easy to identify issues at a glance.
62
+
63
+ ### Remote Server Management
64
+ Connect to and manage PM2 processes on remote servers via secure SSH connections:
65
+ - Add multiple remote server connections with SSH credentials
66
+ - View and manage processes on remote servers
67
+ - Stream logs from remote processes in real-time
68
+ - Execute PM2 commands on remote machines
69
+ - Encrypted credential storage for security
70
+
71
+ ### Cron Jobs
72
+ Schedule and automate tasks using PM2's cron restart feature:
73
+ - Visual cron expression builder with common presets
74
+ - Support for Node.js, Python, Shell, and .NET scripts
75
+ - Inline script editor or file-based execution
76
+ - Enable/disable jobs without deleting them
77
+ - View next execution times and job status
78
+
79
+ ### Advanced Monitoring Dashboard
80
+ Get deeper insights into your system and process performance:
81
+ - Real-time performance charts for CPU, memory, and load
82
+ - System health score calculation
83
+ - Historical metrics tracking
84
+ - Process alerts for high resource usage
85
+ - Per-process performance visualization
86
+
87
+ ### Application Deployment
88
+ Deploy new Node.js applications to PM2 directly from the UI. Configure all the necessary options including:
89
+ - Application name and script path
90
+ - Working directory
91
+ - Number of instances for load balancing
92
+ - Execution mode (fork or cluster)
93
+ - Auto-restart options
94
+ - Memory threshold for restarts
95
+ - Environment variables
96
+
97
+ ### Cluster Management
98
+ Easily scale your Node.js applications with the cluster management interface. Add or remove instances on the fly and switch between fork and cluster execution modes for optimal performance.
99
+
100
+ ### Log Streaming
101
+ View and filter logs from multiple processes simultaneously with the enhanced log streaming interface. Features include:
102
+ - Real-time log updates via WebSocket
103
+ - Filtering by process, log level, or content
104
+ - Pausing and resuming log streams
105
+ - Download logs for offline analysis
106
+ - Floating log panel for remote process logs
107
+
108
+ ### Ecosystem Configuration
109
+ Generate and manage PM2 ecosystem configuration files directly from the UI. This makes it easy to set up complex application deployments and share configurations across your team.
110
+
111
+ ### PM2 Modules
112
+ Manage and configure PM2 modules to extend the functionality of your PM2 installation. Install, update, and remove modules with a few clicks.
113
+
114
+ ### System Metrics
115
+ Monitor key system metrics including:
116
+ - CPU usage and number of cores
117
+ - Memory usage and availability
118
+ - System uptime
119
+ - Load averages (1, 5, and 15 minutes)
120
+
121
+ ### User Interface
122
+ EZ PM2 GUI uses Tailwind CSS for a sleek, compact, and fully responsive interface:
123
+ - Dark and light mode support across all pages
124
+ - Consistent color theming with smooth transitions
125
+ - Compact layout with small fonts and reduced spacing for information density
126
+ - `PageHeader` and `LogStatusBar` reusable components for a consistent look
127
+ - Configure dashboard refresh intervals and log display settings from Settings
128
+
129
+ ## Installation
130
+
131
+ ### Global Installation
132
+
133
+ ```bash
134
+ npm install -g ezpm2gui
135
+ ```
136
+
137
+ ### Local Installation
138
+
139
+ ```bash
140
+ npm install ezpm2gui
141
+ ```
142
+
143
+ ## Usage
144
+
145
+ ### As a Command Line Tool (Global Installation)
146
+
147
+ ```bash
148
+ # Start the EZ PM2 GUI web interface
149
+ ezpm2gui
150
+
151
+ # Start on a specific port
152
+ ezpm2gui --port 4000
153
+
154
+ # Start bound to all network interfaces
155
+ ezpm2gui --host 0.0.0.0
156
+
157
+ # Generate a sample PM2 ecosystem config
158
+ ezpm2gui-generate-ecosystem
159
+ ```
160
+
161
+ ### As a Module (Local Installation)
162
+
163
+ ```javascript
164
+ const ezpm2gui = require('ezpm2gui');
165
+
166
+ // Start the server with default options
167
+ ezpm2gui.start();
168
+
169
+ // Or with custom options
170
+ ezpm2gui.start({
171
+ port: 3030,
172
+ host: '0.0.0.0'
173
+ });
174
+ ```
175
+
176
+ ### Access the UI
177
+
178
+ Once started, open your browser and navigate to:
179
+
180
+ ```
181
+ http://localhost:3001
182
+ ```
183
+
184
+ ## Requirements
185
+
186
+ - Node.js 16.x or later
187
+ - PM2 installed globally (`npm install -g pm2`)
188
+
189
+ ## Configuration
190
+
191
+ EZ PM2 GUI uses environment variables for configuration:
192
+
193
+ - `PORT`: The port to run the server on (default: 3001)
194
+ - `HOST`: The host to bind to (default: localhost)
195
+
196
+ ## Load Balancing with PM2
197
+
198
+ EZ PM2 GUI provides an easy interface to manage PM2's load balancing capabilities:
199
+
200
+ ### Setting Up Load Balancing
201
+
202
+ 1. **Deploy a new application or modify an existing one**:
203
+ - Set the number of instances to greater than 1 (or 0/-1 for max instances based on CPU cores)
204
+ - Choose "Cluster" as the execution mode for optimal load balancing
205
+
206
+ 2. **Manage your cluster**:
207
+ - Use the Cluster Management section to scale instances up or down
208
+ - Switch between fork and cluster execution modes
209
+ - Reload all instances with zero downtime
210
+
211
+ ### How Load Balancing Works
212
+
213
+ PM2 provides built-in load balancing when you run your Node.js applications in cluster mode with multiple instances:
214
+
215
+ - **Cluster Mode**: In this mode, PM2 uses Node.js's cluster module to create multiple worker processes that share the same server port
216
+ - **Multiple Instances**: Incoming requests are automatically distributed across your instances
217
+ - **Zero Downtime Reloads**: When updating your application, PM2 can reload instances one by one to avoid downtime
218
+
219
+ ### Best Practices
220
+
221
+ - For CPU-intensive applications, use a number of instances equal to the number of CPU cores
222
+ - For I/O-intensive applications, you can use more instances than CPU cores
223
+ - Always use cluster mode for load balancing to ensure port sharing between instances
224
+ - Use the reload feature instead of restart for zero-downtime deployments
225
+
226
+ ## Development
227
+
228
+ See [DEVELOPMENT.md](DEVELOPMENT.md) for detailed development instructions.
229
+
230
+ ```bash
231
+ # Clone the repository
232
+ git clone https://github.com/thechandanbhagat/ezpm2gui.git
233
+ cd ezpm2gui
234
+
235
+ # Install dependencies and build
236
+ ./install.sh # On Linux/macOS
237
+ install.bat # On Windows
238
+
239
+ # Start in development mode
240
+ npm run dev
241
+
242
+ # Build the application
243
+ npm run build
244
+
245
+ # Start the application (production mode)
246
+ npm start
247
+ ```
248
+
249
+ ### Project Structure
250
+
251
+ ```
252
+ ezpm2gui/
253
+ ├── bin/ # CLI entry points
254
+ ├── dist/ # Compiled output
255
+ ├── docs/ # Documentation
256
+ ├── screenshots/ # Application screenshots
257
+ ├── scripts/ # Build and utility scripts
258
+ ├── src/ # Source code
259
+ │ ├── client/ # React frontend
260
+ │ │ ├── public/ # Static assets
261
+ │ │ └── src/ # React components and logic
262
+ │ │ ├── components/ # UI components
263
+ │ │ └── types/ # TypeScript types for client
264
+ │ ├── server/ # Express backend
265
+ │ │ ├── routes/ # API routes
266
+ │ │ └── utils/ # Server utilities
267
+ │ └── types/ # Shared TypeScript types
268
+ └── test/ # Test files
269
+ ```
270
+
271
+ ## Contributing
272
+
273
+ Contributions are welcome! Please feel free to submit a Pull Request.
274
+
275
+ 1. Fork the repository
276
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
277
+ 3. Make your changes
278
+ 4. Run the tests to ensure everything works
279
+ 5. Commit your changes using our [commit guidelines](./docs/COMMIT_GUIDE.md)
280
+ 6. Push to the branch (`git push origin feature/amazing-feature`)
281
+ 7. Open a Pull Request
282
+
283
+ ### Coding Style
284
+
285
+ This project follows standardized TypeScript conventions and uses ESLint for code quality. Before submitting a pull request, please ensure your code follows these guidelines by running:
286
+
287
+ ```bash
288
+ npm run lint
289
+ ```
290
+
291
+ ## FAQ
292
+
293
+ ### Q: How does EZ PM2 GUI differ from pm2-gui and PM2 Plus?
294
+
295
+ A: EZ PM2 GUI is a modern, TypeScript-based alternative to pm2-gui with a more user-friendly interface and additional features. Unlike PM2 Plus, it's completely free and open-source, running locally on your server rather than in the cloud.
296
+
297
+ ### Q: Can I use EZ PM2 GUI with PM2 running on a different machine?
298
+
299
+ A: Yes, you can configure EZ PM2 GUI to connect to a remote PM2 installation. You'll need to specify the connection details in the application settings.
300
+
301
+ ### Q: How do I generate an ecosystem file from my existing processes?
302
+
303
+ A: Use the `ezpm2gui-generate-ecosystem` command-line tool, or visit the Ecosystem Config section in the web UI.
304
+
305
+ ### Q: Can EZ PM2 GUI handle a large number of processes?
306
+
307
+ A: Yes, EZ PM2 GUI is designed to handle dozens of processes efficiently. The UI is optimized to present large amounts of information in a digestible format.
308
+
309
+ ### Q: Is EZ PM2 GUI secure?
310
+
311
+ A: By default, EZ PM2 GUI binds to localhost for security reasons. If you expose the interface to other machines, consider adding authentication through a reverse proxy like Nginx.
312
+
313
+ ## Related Projects
314
+
315
+ - [PM2](https://github.com/Unitech/pm2) - The process manager that EZ PM2 GUI works with
316
+ - [pm2-gui](https://github.com/Tjatse/pm2-gui) - The original inspiration for this project
317
+
318
+ ## License
319
+
320
+ GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See [LICENSE](LICENSE).
321
+
322
+ EZ PM2 GUI interfaces with [PM2](https://github.com/Unitech/pm2), which is licensed under AGPL-3.0. Because this project links PM2 as a library, it is distributed under the same license.
323
+
324
+ ## Credits
325
+
326
+ Built by [Chandan Bhagat](https://github.com/thechandanbhagat) as a modern alternative to pm2-gui.
327
+
328
+ ---
329
+
330
+ **Note**: EZ PM2 GUI is not officially affiliated with PM2 or PM2 Plus. It's an independent tool that interfaces with the PM2 process manager.