mirror of
https://github.com/sameerk27/vigil365.git
synced 2026-07-02 10:39:35 +02:00
docs(readme): fix install bugs blocking new users
- 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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
74a3efaf91
commit
742a915947
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user