Production-grade collaborative document editor with real-time editing capabilities.
- Node.js 18+
- Docker and Docker Compose
- PostgreSQL 14+
- Redis 7+
- Start infrastructure:
docker-compose up -d postgres redis- Backend setup:
cd backend
npm install
npm run migrate
npm run dev- Frontend setup:
cd frontend
npm install
npm run devAccess the app at http://localhost:3000
- Build and push Docker images:
./scripts/build-and-push.sh- Deploy to Kubernetes:
kubectl apply -f infrastructure/k8s/- Configure secrets:
kubectl create secret generic app-secrets --from-env-file=.env.productionBackend:
DATABASE_URL- PostgreSQL connection stringREDIS_URL- Redis connection stringJWT_SECRET- JWT signing secretPORT- Server port (default: 4000)AWS_S3_BUCKET- S3 bucket for snapshots
Frontend:
VITE_API_URL- Backend API URLVITE_WS_URL- WebSocket server URL