Generated by Dark Factory — GhostFoundry-Syndicate's AI Code Generation Engine.
- Backend: C# .NET 8 (ASP.NET Core Web API) with Clean Architecture
- Frontend: React 18 + TypeScript + Vite + Tailwind CSS + shadcn/ui
- Database: PostgreSQL (Npgsql + EF Core 8)
- Auth: ASP.NET Core Identity + JWT Bearer Tokens
- Testing: xUnit + Moq + FluentAssertions
- Docs: Swagger/OpenAPI
SchoolPlate/
├── SchoolPlate.sln
├── src/
│ ├── SchoolPlate.Api/ # ASP.NET Core Web API (entry point)
│ │ ├── Controllers/V1/ # 7 API controllers
│ │ ├── Program.cs # App configuration
│ │ └── appsettings.json # Connection strings & JWT config
│ ├── SchoolPlate.Domain/ # Domain entities & interfaces
│ │ └── Entities/ # 5 entity files (District, School, Menu, Order, Student)
│ ├── SchoolPlate.Infrastructure/ # EF Core DbContext, migrations, services
│ └── SchoolPlate.Client/ # React SPA
│ └── src/components/ # 4 UI components (Menu Dashboard, Parent Portal, POS, Compliance)
└── tests/
└── SchoolPlate.Tests/ # xUnit test project
# Create the database
createdb schoolplate_dev
# Update connection string in appsettings.Development.jsoncd src/SchoolPlate.Api
dotnet restore
dotnet ef database update # Run migrations
dotnet runAPI available at https://localhost:5001 with Swagger at /swagger.
cd src/SchoolPlate.Client
npm install
npm run devReact app at http://localhost:5173, proxied to the .NET backend.
# Build React app
cd src/SchoolPlate.Client
npm run build
# Copy output to wwwroot
cp -r dist/* ../SchoolPlate.Api/wwwroot/
# Publish .NET app
cd ../SchoolPlate.Api
dotnet publish -c Release -o ../../publishSingle deployable package in publish/ — run with ./SchoolPlate.Api.
- Replace
Npgsql.EntityFrameworkCore.PostgreSQLwithMicrosoft.EntityFrameworkCore.SqlServerin.csproj - Change
UseNpgsql()toUseSqlServer()inProgram.cs - Update connection string format in
appsettings.json - Regenerate migrations:
dotnet ef migrations add InitialCreate
| Endpoint | Method | Description |
|---|---|---|
/api/v1/menus |
GET/POST | Menu management with compliance validation |
/api/v1/orders |
GET/POST | Student meal ordering with cut-off times |
/api/v1/eligibility/applications |
GET/POST | Free/Reduced meal applications |
/api/v1/pos/transaction |
POST | Point of sale transactions |
/api/v1/production/records |
GET/POST | Production planning & records |
/api/v1/reports/participation |
GET | Participation & compliance reports |
/api/v1/students/{id}/balance |
GET/POST | Student account balance management |
- 7 API Controllers — Full CRUD with validation, pagination, filtering
- 5 Entity Models — EF Core with data annotations, navigation properties, DbContext
- 4 UI Components — Menu Planning Dashboard, Parent Portal, POS Interface, Compliance Reporting
- ~160K characters of production-quality code
- USDA meal component verification (grain, meat/alt, vegetable, fruit, milk)
- Offer vs. Serve tracking
- Free/Reduced/Paid eligibility with USDA 7-CFR-245 compliant forms
- Production records (planned vs. actual)
- FERPA-compliant student data handling
- Discreet eligibility display at POS (no visible F/R indicators)
Generated by Dark Factory v1.0 — Built by Tesa Aria & the Agent Pipeline Task ID: cmn25wlq60009w4mnds7sazx2