mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
- 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.
39 lines
1012 B
JSON
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"
|
|
}
|
|
} |