Files
finance/package.json
Peter Wood d150757025 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.
2025-04-05 17:52:40 -04:00

39 lines
1012 B
JSON

{
"name": "finance",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "node dist/server.js",
"dev": "nodemon --watch src --ext ts --exec ts-node src/server.ts",
"prisma:migrate": "prisma migrate dev",
"prisma:generate": "prisma generate",
"prisma:studio": "prisma studio"
},
"repository": {
"type": "git",
"url": "git+https://github.com/acedanger/finance.git"
},
"keywords": [],
"author": "Peter Wood <peter@peterwood.dev>",
"license": "ISC",
"bugs": {
"url": "https://github.com/acedanger/finance/issues"
},
"homepage": "https://github.com/acedanger/finance#readme",
"description": "",
"dependencies": {
"@prisma/client": "^6.5.0",
"dotenv": "^16.4.7",
"fastify": "^5.2.2",
"fastify-type-provider-zod": "^4.0.2",
"zod": "^3.24.2"
},
"devDependencies": {
"@types/node": "^22.14.0",
"nodemon": "^3.1.9",
"prisma": "^6.5.0",
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
}
}