mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
feat: initialize finance project with Fastify, Prisma, and Zod
- Added package.json with necessary dependencies and scripts for development and production. - Created Prisma schema for BankAccount model with fields: id, name, bankName, accountNumber, createdAt, and updatedAt. - Implemented Fastify server with CRUD operations for bank accounts, including validation using Zod. - Added graceful shutdown handling for server and Prisma client.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
// tsconfig.json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2017", // Or newer
|
||||
"module": "CommonJS",
|
||||
"outDir": "./dist",
|
||||
"rootDir": "api/src",
|
||||
"rootDir": "src",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
@@ -13,6 +12,6 @@
|
||||
"sourceMap": true, // Helpful for debugging
|
||||
"resolveJsonModule": true // Allows importing JSON files
|
||||
},
|
||||
"include": ["api/src/**/*"], // Only compile files in src
|
||||
"include": ["src/**/*"], // Only compile files in src
|
||||
"exclude": ["node_modules", "**/*.spec.ts"] // Exclude tests if you have them
|
||||
}
|
||||
Reference in New Issue
Block a user