Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
c80ab52
fixed signup name optional error
Deodat-Lawson Feb 11, 2026
a66c3e5
Merge pull request #172 from Deodat-Lawson/bugfix/clerk-no-name-sign-up
Deodat-Lawson Feb 11, 2026
237d549
Updated authentication middleware to specify the unauthenticated URL …
Deodat-Lawson Feb 12, 2026
d47f005
updated employee document home page to match employer:
Deodat-Lawson Feb 12, 2026
e5d2db6
Merge pull request #173 from Deodat-Lawson/feature/update-employee-do…
Deodat-Lawson Feb 12, 2026
68c8257
deleting sql migration files and added docker file
Deodat-Lawson Feb 13, 2026
e40c478
saving work
Deodat-Lawson Feb 13, 2026
b9ca1d3
fixing docker deploy and clarified readme
Deodat-Lawson Feb 14, 2026
9727167
Merge pull request #174 from Deodat-Lawson/feature/setting-up-docker
Deodat-Lawson Feb 14, 2026
1c7d32a
added uploading options for docs, pptx, excel, png, jepg files
Deodat-Lawson Feb 14, 2026
e9fb899
added testing guide
Deodat-Lawson Feb 15, 2026
dbf8fd6
fixed-UI-problems and added reame for testing
Deodat-Lawson Feb 15, 2026
c02b326
Merge pull request #175 from Deodat-Lawson/tests/exhausive-ui-test
Deodat-Lawson Feb 15, 2026
35e938c
updated OCR Processing step, embedding storage model, and prompts
Deodat-Lawson Feb 15, 2026
3d7fbf6
Merge pull request #176 from Deodat-Lawson/feature/embedding-strategy…
Deodat-Lawson Feb 15, 2026
1d67a00
Merge branch 'stable' into main
Deodat-Lawson Feb 15, 2026
9dfd50a
Update CI.yml
Deodat-Lawson Feb 15, 2026
4c958e8
Merge pull request #178 from Deodat-Lawson/Deodat-Lawson-patch-4
Deodat-Lawson Feb 15, 2026
dc677f7
Update CI.yml
Deodat-Lawson Feb 15, 2026
521ee71
Merge pull request #179 from Deodat-Lawson/Deodat-Lawson-patch-5
Deodat-Lawson Feb 15, 2026
1dc7ba2
fix tests
Deodat-Lawson Feb 15, 2026
af70c1b
Update CI.yml
Deodat-Lawson Feb 15, 2026
4d951b3
Merge pull request #180 from Deodat-Lawson/Deodat-Lawson-patch-6
Deodat-Lawson Feb 15, 2026
ce59a6c
added mock openai llm to test
Deodat-Lawson Feb 15, 2026
f31cb1c
Merge branch 'main' of https://github.com/Deodat-Lawson/pdr_ai_v2
Deodat-Lawson Feb 15, 2026
029357a
removed invalid tests
Deodat-Lawson Feb 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .claude/settings.local.json

This file was deleted.

47 changes: 47 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Dependencies
node_modules
.pnp
.pnp.js

# Build output
.next
out
build

# Generated assets (created by postinstall from node_modules)
public/vad

# Git
.git
.gitignore

# Testing
coverage
__tests__
*.test.ts
*.test.tsx
*.spec.ts
*.spec.tsx
jest.config.js
jest.babel.config.cjs

.env
.env*.local

# IDE and misc
.DS_Store
.idea
*.md
!README.md

# Vercel
.vercel

# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# TypeScript
*.tsbuildinfo
18 changes: 16 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# Database
DATABASE_URL="postgresql://postgres:password@localhost:5432/pdr_ai_v2"

# Docker Compose: password for PostgreSQL (used by db service)
# POSTGRES_PASSWORD=password

# Clerk Authentication (get from https://clerk.com/)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="your_clerk_publishable_key"
CLERK_SECRET_KEY="your_clerk_secret_key"
Expand All @@ -27,5 +30,16 @@ UPLOADTHING_APP_ID="your_uploadthing_app_id"
# Required only if you want to enable OCR processing for scanned documents
DATALAB_API_KEY="your_datalab_api_key"

# Environment
NODE_ENV="development"
# Landing.AI OCR API (optional - get from https://www.landing.ai/)
LANDING_AI_API_KEY="your_landing_ai_api_key"

# Tavily API (optional - get from https://www.tavily.com/)
TAVILY_API_KEY="your_tavily_api_key"

# Azure Document Intelligence OCR API (optional - get from https://learn.microsoft.com/en-us/azure/applied-ai-services/document-intelligence/quickstarts/get-started-with-rest-api?pivots=programming-language-rest-api)
AZURE_DOC_INTELLIGENCE_ENDPOINT="your_azure_doc_intelligence_endpoint"
AZURE_DOC_INTELLIGENCE_KEY="your_azure_doc_intelligence_key"

# Inngest (required for background document processing - https://inngest.com/)
INNGEST_EVENT_KEY="your_inngest_event_key"
INNGEST_SIGNING_KEY="signkey-dev-xxxxx"
66 changes: 66 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Installing dependencies
FROM node:20-alpine AS deps
RUN npm install -g pnpm@10.15.1
WORKDIR /app

COPY package.json pnpm-lock.yaml ./
# scripts currently only include vad-web assets.
COPY scripts ./scripts
RUN pnpm install --frozen-lockfile

# Builder
FROM node:20-alpine AS builder
RUN npm install -g pnpm@10.15.1
WORKDIR /app

COPY --from=deps /app/node_modules ./node_modules
COPY . .
# public/vad is excluded from context; copy from deps (created by postinstall)
COPY --from=deps /app/public/vad ./public/vad

# Build env validation runs at import time; skip during Docker build
ENV SKIP_ENV_VALIDATION=1
ENV NEXT_TELEMETRY_DISABLED=1

# Build args from docker-compose (passed via --env-file .env)
ARG NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
ARG OPENAI_API_KEY
ENV NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
ENV OPENAI_API_KEY=${OPENAI_API_KEY}

RUN pnpm build

# Schema sync
FROM node:20-alpine AS migrate
RUN npm install -g pnpm@10.15.1
WORKDIR /app
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
RUN pnpm install --frozen-lockfile --ignore-scripts
COPY --from=builder /app/drizzle.config.ts ./drizzle.config.ts
COPY --from=builder /app/src ./src
COPY --from=builder /app/scripts ./scripts

CMD ["sh", "-c", "node scripts/ensure-pgvector.mjs && pnpm db:push"]

# Runner
FROM node:20-alpine AS runner
WORKDIR /app

ENV NEXT_TELEMETRY_DISABLED=1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

USER nextjs

EXPOSE 3000

ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

CMD ["node", "server.js"]
Loading
Loading