File size: 5,133 Bytes
0e0fe0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Quick Start Guide - appsONLINE Launcher

## 🚀 Get Started in 3 Steps

### Step 1: Install Dependencies (First Time Only)

Open PowerShell in the main workspace folder:

```powershell

npm install

```

**Expected output:**
```

added XXX packages in X.XXs

```

### Step 2: Start the Launcher

```powershell

npm start

```

**Expected output:**
```

Express server running on port 3000

```

The Electron window will open automatically showing the application launcher.

### Step 3: Launch Your MVC App

1. Look for **PortWatcher** or other apps in the grid
2. Click **"▶ Launch"** button
3. Wait 2-3 seconds for the app to start
4. Click **"🌐 Open"** to open in your browser

---

## 📋 Prerequisites Check

Before starting, verify you have:

### ✅ Check Node.js
```powershell

node --version

npm --version

```
Should show version 14+ for Node.js and 6+ for npm.

### ✅ Check .NET SDK
```powershell

dotnet --version

```
Should show 8.0 or higher.

### If missing, download from:
- Node.js: https://nodejs.org/
- .NET SDK: https://dotnet.microsoft.com/download

---

## 🛑 Common Issues & Quick Fixes

| Problem | Solution |
|---------|----------|
| "npm: command not found" | Install Node.js from https://nodejs.org/ |
| "dotnet: command not found" | Install .NET SDK from https://dotnet.microsoft.com/ |
| "Port XXX is already in use" | Another app is running on that port. Stop it or change port in launchSettings.json |
| No apps showing | Click "🔄 Refresh Apps" or check if .csproj files exist |
| App won't launch | Run `dotnet run` manually in the app folder to see the actual error |

---

## 📁 File Structure

```

appsONLINE/

├── main.js ..................... Electron app launcher

├── package.json ................ Dependencies list

├── README.md ................... Full documentation

├── QUICKSTART.md ............... This file

├── public/

│   ├── index.html .............. Web interface

│   ├── app.js .................. Frontend logic

│   └── style.css ............... Styling

└── productionYARD2/

    └── sysSec-portWatcher/ ..... Example MVC app

```

---

## 🎮 Using the Launcher

**Dashboard View:**
```

┌──────────────────────────────────────────┐

│         🚀 appsONLINE Launcher           │

│  MVC Web Application Launcher             │

└──────────────────────────────────────────┘

│ 🔄 Refresh Apps    ⏹ Stop All Apps      │

├──────────────────────────────────────────┤

│ ┌─ PortWatcher ──────────────────────┐   │

│ │ Port monitoring and analysis app   │   │

│ │ http://localhost:5293              │   │

│ │ Status: ● Running                  │   │

│ │                                    │   │

│ │ [▶ Running] [🌐 Open] [⏹ Stop]    │   │

│ └────────────────────────────────────┘   │

│                                          │

│ (More apps appear here as you add them) │

└──────────────────────────────────────────┘

```

**Button Actions:**
- **▶ Launch** - Start the application
- **🌐 Open** - Open running app in browser
- **⏹ Stop** - Stop the running application
- **🔄 Refresh Apps** - Re-scan for applications
- **⏹ Stop All Apps** - Stop all running applications

---

## 🔧 Adding a New MVC Application

1. Create your ASP.NET Core MVC project in any subfolder
2. Ensure it has `Properties/launchSettings.json` with HTTP profile
3. Click **"🔄 Refresh Apps"** in the launcher
4. Your app should appear in the grid automatically

**Example launchSettings.json:**
```json

{

  "profiles": {

    "http": {

      "commandName": "Project",

      "applicationUrl": "http://localhost:YOUR_PORT",

      "environmentVariables": {

        "ASPNETCORE_ENVIRONMENT": "Development"

      }

    }

  }

}

```

---

## 🔗 Useful Commands

```powershell

# Start the launcher

npm start



# Install dependencies

npm install



# Start in development mode (with live reload)

npm run electron-dev



# Manually run an MVC app (for debugging)

cd productionYARD2/sysSec-portWatcher/PortWatcher

dotnet run



# Check .NET installation

dotnet --version



# Check Node installation

node --version

```

---

## 📚 Learn More

- Full documentation: Read `README.md`
- Node.js docs: https://nodejs.org/docs/
- .NET docs: https://docs.microsoft.com/dotnet/
- Electron docs: https://www.electronjs.org/docs

---

**Need help?** Check the Troubleshooting section in README.md

Happy coding! 🎉