Deploy PDR AI on your own infrastructure with complete control and customization
git clone https://github.com/Deodat-Lawson/pdr_ai_v2.git
cd pdr_ai_v2pnpm installCreate a .env file in the root directory:
# Database
DATABASE_URL="postgresql://postgres:password@localhost:5432/pdr_ai_v2"
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
# OpenAI API
OPENAI_API_KEY=your_openai_api_key
# UploadThing
UPLOADTHING_SECRET=your_uploadthing_secret
UPLOADTHING_APP_ID=your_uploadthing_app_id
# Environment
NODE_ENV=development# Start PostgreSQL with Docker
chmod +x start-database.sh
./start-database.sh
# Run migrations
pnpm db:pushpnpm devYour application will be available at http://localhost:3000
.env file.env file.env file# Build command
pnpm build
# Start command
pnpm start# Build Docker image
docker build -t pdr-ai .
# Run container
docker run -p 3000:3000 --env-file .env pdr-aipnpm build# Open Drizzle Studio (Database GUI)
pnpm db:studio
# Generate new migrations
pnpm db:generate
# Apply migrations
pnpm db:migrate
# Push schema changes directly (dev)
pnpm db:pushdocker psdocker restart pdr_ai_v2-postgres.env filerm -rf .nextrm -rf node_modules && pnpm installpnpm typecheck= in .env file.envComplete access to all application code with no restrictions
AI-powered missing document detection and recommendations
Interactive Q&A system for document analysis
Complete employee and employer authentication system
Upload, categorize, and manage documents
Insights and statistics for document usage