feat(phase-0): setup Docker Compose with TypeScript monorepo structure
- 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
This commit is contained in:
41
package.json
41
package.json
@@ -1,18 +1,31 @@
|
||||
{
|
||||
"name": "catch_redirect",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"name": "redirect-intelligence-v2",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"start": "node index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build",
|
||||
"dev:api": "cd apps/api && npm run dev",
|
||||
"dev:web": "cd apps/web && npm run dev",
|
||||
"build": "turbo run build",
|
||||
"test": "turbo run test",
|
||||
"lint": "turbo run lint",
|
||||
"db:migrate": "cd packages/database && npx prisma migrate dev",
|
||||
"db:seed": "cd packages/database && npx prisma db seed",
|
||||
"db:studio": "cd packages/database && npx prisma studio",
|
||||
"clean": "turbo run clean && rm -rf node_modules"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"axios": "^1.6.7",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^5.5.1"
|
||||
"devDependencies": {
|
||||
"turbo": "^1.13.0",
|
||||
"typescript": "^5.3.0",
|
||||
"@types/node": "^20.10.0",
|
||||
"prettier": "^3.1.0",
|
||||
"eslint": "^8.55.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0",
|
||||
"npm": ">=10.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user