add http api server

This commit is contained in:
2026-05-09 17:13:53 +08:00
parent f31409bdba
commit 2563ab8f70
5 changed files with 482 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite --port=3000 --host=0.0.0.0",
"api": "tsx server/index.ts",
"build": "vite build",
"preview": "vite preview",
"clean": "rm -rf dist",
@@ -14,22 +15,24 @@
"@google/genai": "^1.29.0",
"@tailwindcss/vite": "^4.1.14",
"@vitejs/plugin-react": "^5.0.4",
"better-sqlite3": "^12.4.1",
"dotenv": "^17.2.3",
"express": "^4.21.2",
"lucide-react": "^0.546.0",
"motion": "^12.23.24",
"multer": "^2.1.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"vite": "^6.2.0",
"express": "^4.21.2",
"dotenv": "^17.2.3",
"better-sqlite3": "^12.4.1",
"motion": "^12.23.24"
"vite": "^6.2.0"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/multer": "^2.1.0",
"@types/node": "^22.14.0",
"autoprefixer": "^10.4.21",
"tailwindcss": "^4.1.14",
"tsx": "^4.21.0",
"typescript": "~5.8.2",
"vite": "^6.2.0",
"@types/express": "^4.17.21"
"vite": "^6.2.0"
}
}