Skip to main content

Prerequisites

  • Node.js 18+ or Bun
  • PostgreSQL (any installation method)
  • GitHub Personal Access Token with repo scope

Clone the repository

git clone https://github.com/your-username/omnilens.git
cd omnilens

Install dependencies

bun install

Set up database

The setup script automatically detects your PostgreSQL installation:
bun run setup

Configure environment variables

Copy the example file:
cp .env.example .env
Then update .env with your GitHub token and database configuration.

Set up GitHub OAuth App

  • Go to GitHub Settings > Developer settings > OAuth Apps
  • Create a new OAuth App with:
    • Homepage URL: http://localhost:3000
    • Authorization callback URL: http://localhost:3000/api/auth/callback/github
  • Copy the Client ID and Client Secret to your .env

Start the development server

bun dev
Navigate to http://localhost:3000

Linting

bun run lint