From 742a9159474c3849943e44aa30f44fa68612bf3f Mon Sep 17 00:00:00 2001 From: Samir Khan Date: Sat, 27 Jun 2026 14:56:18 +0530 Subject: [PATCH] docs(readme): fix install bugs blocking new users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Correct clone URL (YOUR_ORG placeholder -> sameerk27/vigil365) - Remove non-existent 'dist' copy step (vite outDir already targets wwwroot) — this was failing for everyone trying the manual build - Production connection string Encrypt=True;TrustServerCertificate=True (match shipped appsettings) Co-Authored-By: Claude Sonnet 4.6 --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b8de015..d79ed36 100644 --- a/README.md +++ b/README.md @@ -105,8 +105,8 @@ Grant **admin consent** for all of these: ### 1. Clone and configure secrets ```powershell -git clone https://github.com/YOUR_ORG/m365-security-dashboard.git -cd m365-security-dashboard +git clone https://github.com/sameerk27/vigil365.git +cd vigil365 cd src\M365SecurityDashboard.Api dotnet user-secrets init @@ -131,9 +131,11 @@ sqlcmd -S .\SQLEXPRESS -E -I -i .\database\schema.sql cd src\m365-security-dashboard-client npm install npm run build -Copy-Item -Recurse -Force .\dist\* ..\M365SecurityDashboard.Api\wwwroot\ ``` +> `npm run build` outputs directly into `..\M365SecurityDashboard.Api\wwwroot` +> (configured via Vite `outDir`) — no copy step needed. + ### 4. Run the API ```powershell @@ -168,10 +170,9 @@ Frontend dev server: `http://localhost:5173` (proxies API calls to backend) ## Production Deployment (Windows Service) ```powershell -# 1. Build frontend +# 1. Build frontend (outputs straight into the API's wwwroot) cd src\m365-security-dashboard-client npm install && npm run build -Copy-Item -Recurse -Force .\dist\* ..\M365SecurityDashboard.Api\wwwroot\ # 2. Publish API cd ..\M365SecurityDashboard.Api @@ -192,7 +193,7 @@ sc.exe start M365SecurityDashboard ```json { "ConnectionStrings": { - "DefaultConnection": "Server=.\\SQLEXPRESS;Database=M365SecurityDashboard;Trusted_Connection=True;Encrypt=False" + "DefaultConnection": "Server=.\\SQLEXPRESS;Database=M365SecurityDashboard;Trusted_Connection=True;Encrypt=True;TrustServerCertificate=True" }, "Graph": { "TenantId": "YOUR_TENANT_ID",