feat: add stop-app script and update desktop shortcut setup

Adds stop-app.sh to kill all services by port (5000-5003, 3000/3001)
and updates setup-desktop-shortcut.sh to create both Start and Stop
desktop shortcuts in a single run. README Step 13 updated accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ff
2026-05-26 22:00:06 -04:00
parent 080b0c65b8
commit 1b017177e9
4 changed files with 49 additions and 10 deletions

View File

@@ -186,9 +186,9 @@ cd apps/SeleniumService
.venv/bin/python3 agent.py
```
### Step 13 — Create desktop shortcut (optional)
### Step 13 — Create desktop shortcuts (optional)
Instead of opening two terminals manually every time, you can create a desktop shortcut that starts both services with a single double-click.
Instead of opening two terminals manually every time, you can create desktop shortcuts that start and stop all services with a single double-click.
Run this once after cloning and installing:
@@ -196,9 +196,12 @@ Run this once after cloning and installing:
bash ~/Desktop/DentalManagementMH06/setup-desktop-shortcut.sh
```
A **Dental App** shortcut will appear on your desktop. Double-clicking it opens:
- A terminal running `npm run dev` (Backend + Frontend)
- A terminal running the Selenium service
Two shortcuts will appear on your desktop:
- **Dental App** — starts the app. Double-clicking it opens:
- A terminal running `npm run dev` (Backend + Frontend + Python services)
- A terminal running the Selenium service
- **Stop Dental App** — stops all services and frees all ports (5000, 5001, 5002, 5003, 3000/3001)
> No username or path editing needed — the script automatically detects the current user's home folder.