- Bun (v1.0+) - Install Bun
- Node.js (v18+) - Optional, Bun is preferred
- Supabase Account - Sign up
- Gemini API Key - Get API Key
git clone https://github.com/lmcmz/LicenseChekcer.git
cd LicenseChekcerbun installCopy the example environment file:
cp .env.example .envEdit .env and fill in the following variables:
# Gemini AI (server-side only)
GEMINI_API_KEY=your_gemini_api_key_here
# Supabase
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_anon_key_here
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_hereGemini API Key:
- Visit Google AI Studio
- Sign in with Google account
- Click "Create API Key"
- Copy the key
Supabase Keys:
- Go to Supabase Dashboard
- Create a new project or select existing
- Go to Project Settings → API
- Copy:
URL→VITE_SUPABASE_URLanon public→VITE_SUPABASE_ANON_KEYservice_role→SUPABASE_SERVICE_ROLE_KEY
- Open your Supabase project
- Go to SQL Editor
- Copy content from
supabase/schema.sql - Paste and run in SQL Editor
# Install Supabase CLI
npm install -g supabase
# Login
supabase login
# Link project
supabase link --project-ref your-project-ref
# Push schema
supabase db pushCheck that the package_licenses table was created:
SELECT * FROM package_licenses LIMIT 1;Start the development server:
bun run devThe app will be available at:
- Frontend:
http://localhost:3000 - API:
http://localhost:3000/api
bun run dev # Start dev server
bun run build # Build for production
bun run preview # Preview production build
bun run test # Run tests
bun run lint # Lint codeCheck endpoint:
curl "http://localhost:3000/api/check?url=https://github.com/facebook/react"Audit endpoint:
curl -X POST http://localhost:3000/api/audit \
-H "Content-Type: application/json" \
-d '{"dependencies": [{"name": "react", "version": "18.2.0"}]}'- Open
http://localhost:3000 - Paste a package.json or GitHub URL
- Click "Audit"
- Check results display
If port 3000 is taken, Vite will automatically try 3001, 3002, etc.
- Verify
VITE_SUPABASE_URLis correct - Check that database is running
- Ensure RLS policies are set up
- Verify
GEMINI_API_KEYis valid - Check API quota limits
- Ensure billing is enabled on Google Cloud
# Clear cache and reinstall
rm -rf node_modules .vercel
bun install- Deployment Guide - Deploy to production
- Architecture - Learn about the tech stack
- API Reference - Explore the API