Files
award/package.json
Joerg afe150f15c Add proxy configuration for single-port development
Configure SvelteKit dev server to proxy API requests to Elysia backend,
allowing users to access the application on a single port (5173).

## Changes
- Add proxy config to vite.config.js for /api requests
- Update API client to use relative URLs (/api)
- Add convenience 'dev' script to start both servers
- Update README with single-port instructions
- Add architecture section explaining proxy setup

Benefits:
- Single port to access (5173)
- HMR still works for frontend
- No CORS issues
- Backend runs hidden on port 3001

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 08:16:58 +01:00

33 lines
827 B
JSON

{
"name": "award",
"module": "index.js",
"type": "module",
"private": true,
"scripts": {
"dev": "bun run src/backend/index.js & cd src/frontend && bun run dev",
"dev:backend": "bun run src/backend/index.js",
"dev:frontend": "cd src/frontend && bun run dev",
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push",
"db:migrate": "drizzle-kit migrate"
},
"devDependencies": {
"@libsql/client": "^0.17.0",
"@types/bun": "latest",
"drizzle-kit": "^0.31.8"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@elysiajs/cors": "^1.4.1",
"@elysiajs/jwt": "^1.4.0",
"@elysiajs/static": "^1.4.7",
"bcrypt": "^6.0.0",
"drizzle-orm": "^0.45.1",
"elysia": "^1.4.22",
"pino": "^10.2.0",
"pino-pretty": "^13.1.3"
}
}