Migrate from Supabase to direct PostgreSQL connection

- Replace @supabase/supabase-js with native pg library
- Rewrite database.js to use PostgreSQL connection pool
- Update server.js with PostgreSQL connection testing
- Create postgres-schema.sql with complete database schema
- Add apply-schema.js script for easy schema deployment
- Update all documentation (README.md, DEPLOYMENT.md, deploy.sh)
- Remove Supabase-specific files and references
- Update db.config.example.js with PostgreSQL format
This commit is contained in:
2025-12-22 12:54:36 +11:00
parent 90cf68327a
commit 0a8ea2b603
234 changed files with 754 additions and 33727 deletions

View File

@@ -19,8 +19,7 @@
"dependencies": {
"express": "^4.18.2",
"socket.io": "^4.6.1",
"mysql2": "^3.6.5",
"@supabase/supabase-js": "^2.39.0",
"pg": "^8.11.3",
"bad-words": "^3.0.4",
"cors": "^2.8.5"
},