freespace-freemind / QUICKSTART.md
SmartySmile's picture
Upload 45 files
0e0fe0a verified
|
Raw History Blame Contribute Delete
5.13 kB

Quick Start Guide - appsONLINE Launcher

🚀 Get Started in 3 Steps

Step 1: Install Dependencies (First Time Only)

Open PowerShell in the main workspace folder:

npm install

Expected output:

added XXX packages in X.XXs

Step 2: Start the Launcher

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

node --version
npm --version

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

✅ Check .NET SDK

dotnet --version

Should show 8.0 or higher.

If missing, download from:


🛑 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:

{
  "profiles": {
    "http": {
      "commandName": "Project",
      "applicationUrl": "http://localhost:YOUR_PORT",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

🔗 Useful Commands

# 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


Need help? Check the Troubleshooting section in README.md

Happy coding! 🎉