Modern React frontend for the GitAlerts API - automated security scanning for GitHub repositories.
- Node.js 18+ and npm
- GitAlerts API running on
http://localhost:8000(or configureVITE_API_BASE_URL)
npm installCreate a .env file in the ui/ directory:
cp .env.example .envSet your API base URL:
VITE_API_BASE_URL=http://localhost:8000
Start the development server:
npm run devThe app will be available at http://localhost:5173
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build locallynpm run lint- Run ESLint
npm run buildBuild output will be in dist/ directory. The application is a static site that can be deployed to any static hosting service (Netlify, Vercel, AWS S3 + CloudFront, etc.).
VITE_API_BASE_URL- Base URL for the GitAlerts API (default:http://localhost:8000)
Note: CORS must be configured on the API to allow requests from the UI origin. For development, the API should allow http://localhost:5173.