- Create monorepo structure with apps/ and packages/ - Add Docker Compose for api, web, db, redis, worker services - Migrate existing Express.js logic to TypeScript with 100% backward compatibility - Preserve all existing API endpoints (/api/track, /api/v1/track) with identical behavior - Setup development environment with hot reload and proper networking - Add comprehensive TypeScript configuration with path mapping - Include production-ready Dockerfiles with multi-stage builds - Maintain existing rate limiting (100 req/hour/IP) and response formats - Add health checks and graceful shutdown handling - Setup Turbo for efficient monorepo builds and development
26 lines
578 B
JSON
26 lines
578 B
JSON
{
|
|
"name": "@redirect-intelligence/database",
|
|
"version": "2.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:deploy": "prisma migrate deploy",
|
|
"db:studio": "prisma studio",
|
|
"db:seed": "tsx prisma/seed.ts",
|
|
"db:reset": "prisma migrate reset"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "^5.7.1"
|
|
},
|
|
"devDependencies": {
|
|
"prisma": "^5.7.1",
|
|
"tsx": "^4.6.2",
|
|
"@types/node": "^20.10.0",
|
|
"typescript": "^5.3.0"
|
|
},
|
|
"prisma": {
|
|
"seed": "tsx prisma/seed.ts"
|
|
}
|
|
}
|