Dev Setup
Clone and install
git clone https://github.com/thepranaygupta/clearsight.git
cd clearsight
pnpm installSet up environment
cp .env.example .envFill in at minimum:
DATABASE_URL— PostgreSQL connection stringREDIS_URL— Redis connection string
Azure OpenAI is optional for local dev. Without it, scans complete as completed_partial.
Start infrastructure
# Start Postgres + Redis with Docker (no app/worker)
docker compose up postgres redis -dOr use your own local Postgres and Redis.
Run database migrations
pnpm db:migrateStart the app and worker
In two separate terminals:
# Terminal 1 — Next.js app
pnpm dev
# Terminal 2 — BullMQ worker
pnpm workerThe app runs at http://localhost:3000. The worker processes scan jobs in the background.
Verify the setup
Open http://localhost:3000, enter a public URL, and run a scan. If it completes (even completed_partial), your setup is working.
Optional services
pnpm bull-board # Queue monitoring UI at http://localhost:3001
pnpm docs:dev # Nextra docs site at http://localhost:3002Project structure quick reference
src/app/ — Next.js pages and API routes
src/worker/ — BullMQ processors
src/modules/ — Core business logic (scanner, crawler, AI, export, DB)
src/components/ — React components
src/config/ — Centralized env config (read all env vars from here)
prisma/ — Prisma schema and migrationsNext steps
Last updated on