File size: 8,232 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
# Installation Instructions - appsONLINE Launcher

**Created:** February 1, 2026  
**Last Updated:** February 1, 2026

---

## 📋 Overview

This document provides step-by-step instructions to install and run the appsONLINE launcher application.

**Time Required:** 5-10 minutes (depending on internet speed)

---

## ✅ Pre-Installation Checklist

Before starting, ensure you have:

### System Requirements
- [ ] Windows 10 or Windows 11
- [ ] At least 500MB free disk space
- [ ] Administrator access (recommended)
- [ ] Internet connection

### Required Software (Check if installed)
- [ ] Node.js 14 or higher
- [ ] npm 6 or higher
- [ ] .NET SDK 8.0 or higher

**How to check installed software:**

```powershell

# Check Node.js

node --version



# Check npm

npm --version



# Check .NET SDK

dotnet --version

```

---

## 🔧 Installation Steps

### Step 1: Install Node.js (If Not Already Installed)

1. Open your web browser and go to https://nodejs.org/
2. Download the **LTS (Long Term Support)** version
3. Run the installer executable
4. Follow the installation wizard:
   - Click "Next" through all steps
   - Accept the license agreement
   - Keep default installation path
   - Click "Install"
5. **Restart your computer** when prompted

**Verify installation:**
```powershell

node --version    # Should show v18.x.x or higher

npm --version     # Should show 9.x.x or higher

```

---

### Step 2: Install .NET SDK 8.0 (If Not Already Installed)

1. Open your web browser and go to https://dotnet.microsoft.com/download
2. Download **.NET 8.0 SDK** (not Runtime)
3. Run the installer executable
4. Follow the installation wizard:
   - Click "Next" through all steps
   - Accept the license agreement
   - Keep default settings
   - Click "Install"
5. **Restart your computer** when prompted

**Verify installation:**
```powershell

dotnet --version    # Should show 8.0.x or higher

```

---

### Step 3: Install Node Package Dependencies

1. Open **PowerShell** or **Command Prompt**
   - **Windows 11/10:** Press `Win + X` → Choose "Terminal" or "PowerShell"
   - Or search for "PowerShell" in the Start menu

2. Navigate to the appsONLINE folder:
   ```powershell

   cd "c:\Users\SAhan\OneDrive\appsONLINE"

   ```

3. Install dependencies:
   ```powershell

   npm install

   ```
   
   **Expected output:**
   ```

   added XXX packages in X.XXs

   ```

4. Wait for installation to complete (may take 2-5 minutes)

---

### Step 4: Verify Installation

Run the verification script:

**Using PowerShell:**
```powershell

.\setup.ps1

```

**Using Command Prompt:**
```cmd

setup.bat

```

This script will:
- ✅ Check Node.js installation
- ✅ Check npm installation
- ✅ Check .NET SDK installation
- ✅ Scan for MVC applications
- ✅ Verify all files are in place

---

## 🚀 Starting the Launcher

You have **three options** to start the application:

### Option 1: Using PowerShell (Recommended)
```powershell

cd "c:\Users\SAhan\OneDrive\appsONLINE"

npm start

```

### Option 2: Using Batch File
1. Open File Explorer
2. Navigate to `c:\Users\SAhan\OneDrive\appsONLINE`
3. Double-click **start.bat**

### Option 3: Using PowerShell Script
```powershell

cd "c:\Users\SAhan\OneDrive\appsONLINE"

.\start.ps1

```

---

## ✨ Expected Behavior

When you start the launcher:

1. **Console Output:** You'll see messages like:
   ```

   Express server running on port 3000

   ```

2. **Electron Window:** A new application window opens showing:
   - appsONLINE header
   - List of discovered MVC applications
   - Control buttons for each app

3. **Discovery:** The launcher automatically finds:
   - PortWatcher (if installed)
   - Any other ASP.NET Core MVC projects in subfolders

---

## 🎮 First Run - Test the Launcher

### Testing PortWatcher (Example)

1. Look for the **PortWatcher** application card
2. Click the **"▶ Launch"** button
3. Wait 2-3 seconds (status will show "● Running")
4. Click **"🌐 Open"** to open the application
5. The application should open in your default browser

### Stopping the Application

1. Click the **"⏹ Stop"** button on the app card
2. Or click **"⏹ Stop All Apps"** to stop everything

---

## 🛠️ Troubleshooting Installation

### Problem: "npm: command not found"

**Solution:**
1. Node.js is not installed or not in your PATH
2. Download from https://nodejs.org/
3. Run the installer and complete setup
4. **Restart PowerShell/CMD and try again**

### Problem: "dotnet: command not found"

**Solution:**
1. .NET SDK is not installed or not in your PATH
2. Download from https://dotnet.microsoft.com/download
3. Run the installer and complete setup
4. **Restart PowerShell/CMD and try again**

### Problem: "npm install" fails with errors

**Solution:**
1. Try running PowerShell as Administrator:
   - Right-click PowerShell
   - Select "Run as administrator"
   - Try `npm install` again

2. Or delete and reinstall:
   ```powershell

   rm -r node_modules

   npm install

   ```

### Problem: "No MVC applications found"

**Solution:**
1. Verify that .csproj files exist in subfolders
2. Verify that Properties/launchSettings.json exists
3. Click "🔄 Refresh Apps" in the launcher
4. If still not found, check TROUBLESHOOTING.md

---

## 📁 File Verification

After installation, you should have these files in `c:\Users\SAhan\OneDrive\appsONLINE`:

**Core files:**
- ✅ main.js
- ✅ preload.js
- ✅ package.json
- ✅ public/ (folder with index.html, app.js, style.css)

**Documentation:**
- ✅ README.md
- ✅ QUICKSTART.md
- ✅ TROUBLESHOOTING.md
- ✅ MANIFEST.md
- ✅ INSTALLATION.md (this file)

**Startup scripts:**
- ✅ start.bat
- ✅ start.ps1
- ✅ setup.bat
- ✅ setup.ps1

**After running npm install:**
- ✅ node_modules/ (folder with dependencies)

- ✅ package-lock.json



---



## 🎯 What to Do Next



### Quick Start

1. Run `npm start`

2. Click "▶ Launch" on an application

3. Click "🌐 Open" to view it in browser



### Learn More

- Read **README.md** for complete documentation

- Read **QUICKSTART.md** for fast reference

- Check **TROUBLESHOOTING.md** for help



### Add New Applications

1. Create your ASP.NET Core MVC project in a subfolder

2. Ensure it has Properties/launchSettings.json

3. Click "🔄 Refresh Apps" in the launcher

4. New app should appear automatically



---



## 📞 Support



If you encounter issues:



1. **Check TROUBLESHOOTING.md** - Most common problems and solutions

2. **Run setup.ps1** - Verify all requirements are met

3. **Check console output** - Errors are printed there

4. **Review README.md** - Complete documentation



---



## 🔄 Uninstalling/Resetting



### To clean up and start fresh:



```powershell

cd "c:\Users\SAhan\OneDrive\appsONLINE"



# Remove all dependencies

rm -r node_modules
rm package-lock.json

# Reinstall everything
npm install

# Start fresh
npm start
```



### To completely remove the launcher:



```powershell

# Stop any running applications first

# Then simply delete the entire appsONLINE folder

# Or from PowerShell:

rm -r "c:\Users\SAhan\OneDrive\appsONLINE"

```

---

## ✅ Installation Complete!

You're now ready to use the appsONLINE launcher!

**Next step:** Run `npm start` and enjoy managing your MVC applications.

---

## 📝 Important Notes

1. **Keep Node.js updated:** Periodically update Node.js from https://nodejs.org/
2. **Keep .NET SDK updated:** Download new versions from https://dotnet.microsoft.com/
3. **npm dependencies:** Occasionally run `npm update` to get security patches
4. **Backups:** Backup your MVC applications separately

---

## 📚 Additional Resources

- **Node.js Documentation:** https://nodejs.org/docs/
- **.NET Documentation:** https://docs.microsoft.com/dotnet/
- **Electron Documentation:** https://www.electronjs.org/docs/
- **Express.js Documentation:** https://expressjs.com/

---

**Created:** February 1, 2026  
**Version:** 1.0.0

Happy coding! 🎉