Public Access
1
0

feat: migrate app to local Fastify and Postgres stack

Replace Supabase auth and search runtime with a local Fastify API, PostgreSQL/PostGIS schema, and local session handling. Scaffold the worker and deep-research foundations while keeping the existing research, dashboard, and map flows running on the new backend.
This commit is contained in:
pguerrerox
2026-03-27 13:56:54 +00:00
parent 0e4910805a
commit a1ba5ee093
44 changed files with 3756 additions and 1128 deletions
+21 -4
View File
@@ -5,28 +5,45 @@
"type": "module",
"scripts": {
"dev": "vite --port=3000 --host=0.0.0.0",
"dev:web": "vite --port=3000 --host=0.0.0.0",
"dev:api": "tsx --tsconfig tsconfig.server.json server/src/index.ts",
"dev:worker": "tsx --tsconfig tsconfig.server.json server/src/worker.ts",
"build": "vite build",
"build:api": "tsc -p tsconfig.server.json",
"preview": "vite preview",
"clean": "rm -rf dist",
"lint": "tsc --noEmit"
"clean": "rm -rf dist dist-server",
"lint": "tsc --noEmit && tsc -p tsconfig.server.json --noEmit",
"migrate": "tsx --tsconfig tsconfig.server.json db/scripts/migrate.ts",
"seed:postal": "tsx --tsconfig tsconfig.server.json db/scripts/seed-postal-placeholder.ts",
"start:api": "node dist-server/server/src/index.js",
"start:worker": "node dist-server/server/src/worker.js"
},
"dependencies": {
"@supabase/supabase-js": "^2.57.4",
"@fastify/cookie": "^11.0.2",
"@fastify/cors": "^11.2.0",
"@tailwindcss/vite": "^4.1.14",
"@vis.gl/react-google-maps": "^1.7.1",
"@vitejs/plugin-react": "^5.0.4",
"argon2": "^0.44.0",
"clsx": "^2.1.1",
"dotenv": "^17.3.1",
"fastify": "^5.8.4",
"lucide-react": "^0.546.0",
"papaparse": "^5.5.3",
"pg": "^8.20.0",
"pg-boss": "^12.14.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwind-merge": "^3.5.0",
"vite": "^6.2.0"
"vite": "^6.2.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^22.14.0",
"@types/pg": "^8.20.0",
"autoprefixer": "^10.4.21",
"tailwindcss": "^4.1.14",
"tsx": "^4.21.0",
"typescript": "~5.8.2",
"vite": "^6.2.0"
}