Skip to content

AditSingh10/Collaborative-Document-Editor

Repository files navigation

Collaborative Document Editor

Production-grade collaborative document editor with real-time editing capabilities.

Local Development

Prerequisites

  • Node.js 18+
  • Docker and Docker Compose
  • PostgreSQL 14+
  • Redis 7+

Setup

  1. Start infrastructure:
docker-compose up -d postgres redis
  1. Backend setup:
cd backend
npm install
npm run migrate
npm run dev
  1. Frontend setup:
cd frontend
npm install
npm run dev

Access the app at http://localhost:3000

Deployment

AWS EKS Deployment

  1. Build and push Docker images:
./scripts/build-and-push.sh
  1. Deploy to Kubernetes:
kubectl apply -f infrastructure/k8s/
  1. Configure secrets:
kubectl create secret generic app-secrets --from-env-file=.env.production

Environment Variables

Backend:

  • DATABASE_URL - PostgreSQL connection string
  • REDIS_URL - Redis connection string
  • JWT_SECRET - JWT signing secret
  • PORT - Server port (default: 4000)
  • AWS_S3_BUCKET - S3 bucket for snapshots

Frontend:

  • VITE_API_URL - Backend API URL
  • VITE_WS_URL - WebSocket server URL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors