- Express backend with /api/upload endpoint - Multer for file handling (FBX, OBJ, GLTF, GLB) - Auto-conversion to Draco-compressed GLB - UploadSection component with drag-drop UI - Auto-display converted models in gallery - Updated build scripts for full-stack deployment
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "services-site",
|
|
"version": "1.0.0",
|
|
"description": "Modern services website with 3D refinery upload",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "concurrently 'npm run server' 'vite'",
|
|
"dev:client": "vite",
|
|
"server": "node server/server.js",
|
|
"build": "tsc && vite build",
|
|
"build:full": "npm run build && npm run copy-server",
|
|
"copy-server": "cp -r server dist/",
|
|
"preview": "vite preview",
|
|
"start": "NODE_ENV=production node server/server.js"
|
|
},
|
|
"dependencies": {
|
|
"@react-three/drei": "^9.122.0",
|
|
"@react-three/fiber": "^8.18.0",
|
|
"@types/three": "^0.182.0",
|
|
"concurrently": "^8.2.2",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.18.2",
|
|
"framer-motion": "^12.34.0",
|
|
"lucide-react": "^0.294.0",
|
|
"multer": "^1.4.5-lts.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"three": "^0.182.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^4.17.21",
|
|
"@types/multer": "^1.4.11",
|
|
"@types/react": "^18.2.43",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"typescript": "^5.2.2",
|
|
"vite": "^5.0.8"
|
|
}
|
|
} |