Section 1 complete (tasks 1.1-1.7): - .NET 8 solution with 8 projects (Common, Basic, Database, Logic, Api, Backend, Migration, Tests) and correct dependency graph - NuGet deps: MySqlConnector, NBitcoin, Microsoft.Extensions.Hosting, xunit, coverlet - Common layer: IHasIdentity, enums (Permission, FinancialAccountType, DocumentType, CryptoChain, ExpenseClaimStatus, InvoiceStatus, PayoutStatus, FinancialDependencyType) - React + TypeScript + Vite frontend with MUI, react-router, react-i18next - Localization: EN, SV, DE translation files - Vite builds to src/UsingCash.Api/wwwroot for static serving - Multi-stage Dockerfile: Node build + .NET build -> aspnet runtime - Gitea Actions CI: build, test, lint, Docker image - appsettings.json with read/write/admin DB credential structure Also updates data-migration spec/design for mysqldump-based workflow. Made-with: Cursor
17 lines
366 B
TypeScript
17 lines
366 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: '../src/UsingCash.Api/wwwroot',
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:5000',
|
|
'/ws': { target: 'ws://localhost:5000', ws: true },
|
|
},
|
|
},
|
|
})
|