@@ -118,36 +118,46 @@ This template uses a consistent architecture across all environments where the .
118118## Project Structure
119119
120120```
121- MyApp/ # Main ASP.NET Core host
122- ├── Configure.*.cs # Modular startup configuration
123- ├── Program.cs # Application entry point
124- └── wwwroot/ # Static files (production)
125-
126- MyApp.Client/ # Next.js frontend application
127- ├── app/ # Next.js App Router pages
128- ├── components/ # React components
129- ├── lib/ # Utilities and helpers
130- ├── public/ # Static assets
131- └── dist/ # Build output (production)
132-
133- MyApp.ServiceInterface/ # Service implementations
134- ├── MyServices.cs # Example services
135- └── Data/ # EF Core DbContext
136-
137- MyApp.ServiceModel/ # DTOs and service contracts
138- ├── Bookings.cs # AutoQuery CRUD example
139- └── Hello.cs # Example service contract
140-
141- MyApp.Tests/ # Integration and unit tests
142-
143- config/ # Deployment configuration
144- └── deploy.yml # Kamal deployment settings
145-
146- .github/ # GitHub Actions workflows
121+ MyApp/ # .NET Backend (hosts both .NET and Next.js)
122+ ├── Configure.*.cs # Modular startup configuration
123+ ├── Migrations/ # EF Core Identity migrations + OrmLite app migrations
124+ ├── Pages/ # Identity Auth Razor Pages
125+ └── wwwroot/ # Production static files (from MyApp.Client/dist)
126+
127+ MyApp.Client/ # React Frontend
128+ ├── app/ # Next.js App Router pages
129+ ├── components/ # React components
130+ ├── lib/ # Utilities and helpers
131+ │ ├── dtos.ts # Auto-generated from C# (via `npm run dtos`)
132+ │ ├── gateway.ts # ServiceStack JsonServiceClient
133+ │ └── utils.ts # Utility functions
134+ ├── public/ # Static assets
135+ ├── dist/ # Build output (production)
136+ ├── styles/ # Tailwind CSS styles
137+ └── next.config.mjs # Next.js config for dev mode
138+
139+ MyApp.ServiceModel/ # DTOs & API contracts
140+ ├── *.cs # C# Request/Response DTOs
141+ ├── api.d.ts # TypeScript data models Schema
142+ └── *.d.ts # TypeScript data models for okai code generation
143+
144+ MyApp.ServiceInterface/ # Service implementations
145+ ├── Data/ # EF Core DbContext and Identity models
146+ └── *Services.cs # ServiceStack service implementations
147+
148+ MyApp.Tests/ # .NET tests (NUnit)
149+ ├── IntegrationTest.cs # API integration tests
150+ └── MigrationTasks.cs # Migration task runner
151+
152+ Dockerfile # Custom .NET + Next.js Dockerfile
153+ entrypoint.sh # Coordinated .NET and Node process management
154+ config/
155+ └── deploy.yml # Kamal deployment settings
156+ .github/
147157└── workflows/
148- ├── build.yml # CI build and test
149- ├── build-container.yml # Container image build
150- └── release.yml # Production deployment with Kamal
158+ ├── build.yml # CI build and test
159+ ├── build-container.yml # Container image build
160+ └── release.yml # Production deployment with Kamal
151161```
152162
153163## Development Workflow
0 commit comments