-
Notifications
You must be signed in to change notification settings - Fork 1
installation
BrunoV21 edited this page Apr 11, 2025
·
1 revision
- Python 3.10+ (for backend)
- Node.js 18+ (for frontend)
- Docker (optional, for containerized deployment)
- Git (for cloning the repository)
git clone https://github.com/BrunoV21/GitRecap.git
cd GitRecappython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txt
pip install -r app/api/requirements.txtcp .env.example .env
# Edit .env with your credentials:
# - GitHub/GitLab/Azure PAT tokens
# - OAuth credentials
# - Rate limiting settingsuvicorn app.api.main:app --reloadcd app/git-recapnpm installcp .env.example .env.local
# Edit .env.local with:
# - VITE_FRONTEND_HOST
# - VITE_GITHUB_CLIENT_ID
# - VITE_BACKEND_URLnpm run devdocker-compose -f app/api/docker-compose.yaml up --build-
Backend:
gunicorn -k uvicorn.workers.UvicornWorker app.api.main:app
-
Frontend:
npm run build serve -s dist
VITE_FRONTEND_HOST= # Frontend origin for CORS
VITE_GITHUB_CLIENT_ID= # GitHub OAuth app ID
VITE_GITHUB_CLIENT_SECRET= # GitHub OAuth secret
RATE_LIMIT=30 # Requests per window
WINDOW_SECONDS=3 # Rate limit windowVITE_BACKEND_URL=http://localhost:8000
VITE_GITHUB_CLIENT_ID=your_client_id
VITE_FRONTEND_HOST=http://localhost:3000-
Python package conflicts: Use
pip checkto verify dependencies -
Frontend build errors: Delete
node_modulesand reinstall -
CORS issues: Verify
VITE_FRONTEND_HOSTmatches your frontend URL - Authentication problems: Check token permissions and expiration