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:
Peter Wood
2025-04-05 17:52:40 -04:00
parent 7c1cf427d1
commit d150757025
14 changed files with 2266 additions and 710 deletions

View File

@@ -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
}