Run GitStrength on your machine for development.
- Node.js 18+ (recommend 20+)
- pnpm (or npm/yarn)
-
Clone and install
git clone https://github.com/web2and3/gitstrength-github-improver.git cd gitstrength-github-improver pnpm install -
Environment variables
Copy the example env file and fill in values:
cp .env.example .env
Variable Required Description GITHUB_IDYes (for sign-in & Followers Check) GitHub OAuth App Client ID. Create at GitHub OAuth Apps. GITHUB_SECRETYes (for sign-in & Followers Check) GitHub OAuth App Client Secret. NEXTAUTH_SECRETYes Random string for NextAuth. Generate: openssl rand -base64 32NEXTAUTH_URLYes App URL. Local: http://localhost:3000NEXT_PUBLIC_APP_URLOptional Same as NEXTAUTH_URLfor local; in production set to your public URL (used for “Copy README” links and sitemap).GitHub OAuth: In your OAuth App settings set Authorization callback URL to
http://localhost:3000/api/auth/callback/github(or yourNEXTAUTH_URL+/api/auth/callback/github). -
Run dev server
pnpm dev
Open http://localhost:3000.
| Command | Description |
|---|---|
pnpm dev |
Start Next.js dev server |
pnpm build |
Production build |
pnpm start |
Run production build locally |
pnpm lint |
Run ESLint |
You can run the app without GITHUB_ID / GITHUB_SECRET. The Streak Card and Skill Set generators and all public card APIs work. Followers Check and “Continue with GitHub” on the home page require a valid GitHub OAuth app.