feat: add stock database with prisma for portfolio persistence

- Initialize Prisma with SQLite and Stock model
- Create database service layer with singleton client
- Add API routes for stock CRUD operations
- Integrate database with analyze page to persist ticker entries
- Add Playwright tests for stock database functionality
This commit is contained in:
2026-05-14 10:23:56 +02:00
parent f40eec1420
commit 3340fd11ca
29 changed files with 2530 additions and 221 deletions
+3
View File
@@ -24,6 +24,7 @@
},
"devDependencies": {
"@playwright/test": "^1.60.0",
"@prisma/client": "^5.22.0",
"@react-router/dev": "7.15.0",
"@tailwindcss/vite": "^4.2.2",
"@testing-library/jest-dom": "^6.9.1",
@@ -32,7 +33,9 @@
"@types/node": "^22",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"jsdom": "^29.1.1",
"playwright": "^1.42.0",
"prisma": "^5.22.0",
"tailwindcss": "^4.2.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3",