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
+17
View File
@@ -0,0 +1,17 @@
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=repohub
DB_USER=postgres
DB_PASSWORD=your_password_here
# Next.js Configuration
NEXTAUTH_URL=http://localhost:3002
NEXTAUTH_SECRET=your_secret_here
# API Configuration
API_BASE_URL=http://localhost:3000/api
# Sync Configuration
SYNC_ENABLED=true
SYNC_INTERVAL=3600000 # 1 hour in milliseconds