Double-click this file to configure everything:
SETUP_COMPLETE_AUTOMATION.bat
That's it! Everything else is automatic.
Already Enabled in your .env:
LOCAL_NEXUS_AUTO_START_ALL_ON_BOOT=trueWhat it does:
- All services with
start_commandauto-start when controller starts - Logs saved to
data/logs/ - Status visible in dashboard
Configured by: SETUP_COMPLETE_AUTOMATION.bat
What it does:
- Controller starts automatically when you log in to Windows
- Runs in background
- Waits for network to be ready
Already Enabled in your .env:
LOCAL_NEXUS_OPEN_BROWSER=trueWhat it does:
- Dashboard automatically opens in your browser
- URL: http://localhost:5010
- Shows all running services
When you restart Windows and log in:
Windows Boot
↓
User Login
↓
Task Scheduler triggers
↓
Controller starts (tools/start_nexus_on_boot.bat)
↓
Controller initializes
↓
Auto-discovery scans C:\Users\nedpe\Desktop\Repositories
↓
File watcher starts monitoring C:\Users\nedpe\Desktop
↓
Service auto-start begins
↓
╔════════════════════════════════════╗
║ Auto-starting X service(s) ║
╠════════════════════════════════════╣
║ Starting: Service 1... ✓ Started ║
║ Starting: Service 2... ✓ Started ║
║ Starting: Service 3... ✓ Started ║
╚════════════════════════════════════╝
↓
Browser opens to http://localhost:5010
↓
Dashboard shows all services running (green status)
↓
✓ DONE - Everything is running!
Total time: 30-60 seconds after login
Zero manual steps required!
Double-click:
SETUP_COMPLETE_AUTOMATION.bat
What it does:
- Verifies service auto-start is enabled in
.env - Launches Windows auto-start setup (requires admin)
- Creates Task Scheduler task
- Creates startup batch file
- Verifies everything is configured
Expected output:
============================================================
SUCCESS! Complete Automation is Now Configured
============================================================
Manual test:
start.batShould show:
- Controller starts
- "Auto-starting X service(s)" message
- ✓ Started for each service
- Browser opens to dashboard
Full automation test:
- Log out of Windows
- Log back in
- Wait 30-60 seconds
- Dashboard should open automatically
- All services should be running
After running SETUP_COMPLETE_AUTOMATION.bat:
- Terminal shows "SUCCESS! Complete Automation is Now Configured"
- Task Scheduler has task named "Local Nexus Controller"
- File exists:
tools\start_nexus_on_boot.bat -
.envhasLOCAL_NEXUS_AUTO_START_ALL_ON_BOOT=true -
.envhasLOCAL_NEXUS_OPEN_BROWSER=true
Verify Windows auto-start:
schtasks /query /tn "Local Nexus Controller"Should show task details.
Verify service auto-start:
CHECK_AUTO_START.batShould show "Auto-start is ENABLED".
- Windows boots
- User logs in
- Desktop appears
- Task Scheduler activates
- Task Scheduler runs startup task
- Controller process starts
- Database initializes
- Auto-discovery scans repositories folder
- File watcher starts
- Each service with
start_commandstarts - Process manager launches commands
- Logs begin capturing output
- Status updates in database
- Browser window opens automatically
- Dashboard loads at http://localhost:5010
- Shows all services with green "Running" status
- Ready to use!
# Service auto-start
LOCAL_NEXUS_AUTO_START_ALL_ON_BOOT=true
# Browser auto-open
LOCAL_NEXUS_OPEN_BROWSER=true
# Auto-discovery
LOCAL_NEXUS_AUTO_DISCOVERY_ENABLED=true
LOCAL_NEXUS_REPOSITORIES_FOLDER=C:\Users\nedpe\Desktop\Repositories
# File watcher
LOCAL_NEXUS_FILE_WATCHER_ENABLED=true
LOCAL_NEXUS_FILE_WATCHER_FOLDER=C:\Users\nedpe\Desktop- Task Name: Local Nexus Controller
- Trigger: At user logon
- Action: Run
tools\start_nexus_on_boot.bat - User: Your Windows account
- Run Level: Highest privileges
Location: tools\start_nexus_on_boot.bat
Contents:
@echo off
cd /d "C:\path\to\your\project"
npm run devtools\DISABLE_AUTO_START.batThis removes:
- Windows Task Scheduler task
- Startup batch file
Service auto-start remains in .env but won't run if controller isn't started.
Edit .env:
LOCAL_NEXUS_AUTO_START_ALL_ON_BOOT=falseController still auto-starts on boot, but services don't.
tools\DISABLE_AUTO_START.batServices still auto-start, but only when you manually run controller.
Edit .env:
LOCAL_NEXUS_OPEN_BROWSER=falseController and services still auto-start, but browser doesn't open.
Windows Event Viewer:
- Open Event Viewer
- Windows Logs → Application
- Look for entries from "Task Scheduler" or "Local Nexus Controller"
File location:
data/logs/
Each service has:
ServiceName-abc123.log- All output from the service- Auto-rotated to prevent huge files
View in dashboard:
- Go to http://localhost:5010
- Click "Services"
- Click service name
- Scroll to "Logs" section
Task Manager:
- Press Ctrl+Shift+Esc
- Look for:
python.exe- Controller and Python servicesnode.exe- Node services- Other runtimes
Dashboard:
- http://localhost:5010 → Services page
- Green "Running" = Service is up
- Red "Error" = Service failed
- Gray "Stopped" = Service not started
Check logs:
data/logs/ServiceName-abc123.log
Common issues:
- Missing
start_commandon service - Wrong working directory
- Dependencies not installed
- Port already in use
- Runtime not found (Python, Node, etc.)
Fix:
- Go to dashboard
- Click service name
- Check "Last Error" field
- Fix the issue
- Restart controller
Verify task exists:
schtasks /query /tn "Local Nexus Controller"If missing:
SETUP_COMPLETE_AUTOMATION.batCheck task history:
- Open Task Scheduler
- Find "Local Nexus Controller"
- Right-click → Properties
- History tab
Check .env:
LOCAL_NEXUS_OPEN_BROWSER=trueManual open:
Kill and restart:
taskkill /F /IM python.exe
taskkill /F /IM node.exeThen:
start.batInstall dependencies:
pip install -r requirements.txtOr for auto-install:
npm run devTo wait longer for system to be ready, edit the Task Scheduler task:
- Open Task Scheduler
- Find "Local Nexus Controller"
- Right-click → Properties
- Triggers tab → Edit
- Advanced settings
- "Delay task for:" 30 seconds (or more)
- Task Scheduler → Properties
- Conditions tab
- Check "Start only if computer is on AC power"
- Task Scheduler → Properties
- Settings tab
- "If the task fails, restart every:" 1 minute
- "Attempt to restart up to:" 3 times
start.batExpected:
- Controller starts
- Terminal shows "Auto-starting X service(s)"
- ✓ Started for each service
- Browser opens
- Dashboard shows green statuses
- Close controller (Ctrl+C or close window)
- Run
start.batagain - Should auto-start services again
- Restart computer
- Log in
- Wait 60 seconds
- Dashboard should open automatically
- All services should be running
Open: data/logs/
Should see log files for each service.
- Dashboard → Services → Click service → Stop
- Restart controller
- Service should auto-start again
-
Disable auto-start:
tools\DISABLE_AUTO_START.bat
-
Fix the issue (check logs, fix services)
-
Re-enable:
SETUP_COMPLETE_AUTOMATION.bat
- Remove all services from dashboard
- Disable Windows auto-start
- Verify
.envsettings - Add services back with correct configs
- Test manually first
- Then enable Windows auto-start
Check documentation:
AUTO_START_TROUBLESHOOTING.md- Service auto-start issuesAUTO_START_STATUS.md- Current configuration statusSTART_HERE_AFTER_REBOOT.md- Boot errorsQUICK_FIX.md- Common fixes
Run diagnostics:
CHECK_AUTO_START.batComplete automation requires:
- ✅ Service auto-start - Already enabled in
.env - ✅ Browser auto-open - Already enabled in
.env - ⚙️ Windows auto-start - Run
SETUP_COMPLETE_AUTOMATION.bat
After setup:
- Restart Windows
- Controller auto-starts
- Services auto-start
- Browser opens
- Dashboard shows everything running
- Zero manual steps!
| Task | Command |
|---|---|
| Complete setup | Double-click SETUP_COMPLETE_AUTOMATION.bat |
| Manual start | Double-click start.bat |
| Check status | Double-click CHECK_AUTO_START.bat |
| Disable automation | tools\DISABLE_AUTO_START.bat |
| View logs | Open data/logs/ folder |
| Open dashboard | http://localhost:5010 |
| Check task | schtasks /query /tn "Local Nexus Controller" |
You're ready for complete automation!
Just double-click SETUP_COMPLETE_AUTOMATION.bat and follow the prompts.