- Local-First Software: ink & switch
- Graph Database Design Patterns
- Event Sourcing for Knowledge Management
- React Performance Best Practices
- .NET Performance Tips
# Start development environment
npm run dev # Frontend with hot reload
dotnet run --project KnowledgeNetwork.Api # Backend API
npm run tauri dev # Full desktop app
# Build for production
npm run build # Frontend build
dotnet publish -c Release # Backend build
npm run tauri build # Desktop application
# Testing
npm test # Frontend tests
dotnet test # Backend tests
# Database operations
dotnet ef migrations add <Name> # When using EF Core later
dotnet ef database update # Apply migrationsFOLLOWS UNIVERSAL RULES: See /AGENT-DEV-SERVER-RULES.md
- Port: 5000 (HTTP)
- Health Check:
GET /api/CodeAnalysis/health - Swagger UI: http://localhost:5000/swagger
- Project Path:
KnowledgeNetwork.Api/KnowledgeNetwork.Api
# Check if API is running
curl -s http://localhost:5000/api/CodeAnalysis/health
# Start API (only if not running)
cd KnowledgeNetwork.Api/KnowledgeNetwork.Api
dotnet run --urls "http://localhost:5000"
# Test endpoint
curl -X POST http://localhost:5000/api/CodeAnalysis/analyze \
-H "Content-Type: application/json" \
-d '{"code":"class Test { static void Main() { } }"}'.current-pid- Contains running API process IDrun-api.bat- Windows startup scriptprocess-manager.ps1- Smart process managementapi-check.bat- Quick health check
- Test health endpoint first
- If healthy → reuse existing server
- If not running → start new instance
- Save PID for future reference
Remember: This is a local-first application that prioritizes user control, performance, and privacy while maintaining a clear path to cloud collaboration when needed.