feat: add PostgreSQL database support and development scripts

- Added pg and @types/pg dependencies for PostgreSQL integration
- Created database testing and backend initialization scripts
- Changed dev server port to 3002 to avoid conflicts
This commit is contained in:
Yusuf İpek
2025-11-10 18:02:08 +03:00
parent e82366e5e8
commit 596bba0832
17 changed files with 1518 additions and 3 deletions
+7 -3
View File
@@ -3,11 +3,13 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev -p 3002",
"build": "next build",
"start": "next start",
"lint": "next lint",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"test:db": "node scripts/test-db.js",
"init:backend": "chmod +x scripts/init-backend.sh && ./scripts/init-backend.sh"
},
"dependencies": {
"next": "14.0.4",
@@ -25,13 +27,15 @@
"tailwind-merge": "^2.1.0",
"tailwindcss-animate": "^1.0.7",
"react-query": "^3.39.3",
"zustand": "^4.4.7"
"zustand": "^4.4.7",
"pg": "^8.11.3"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/pg": "^8.10.9",
"autoprefixer": "^10.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",