Contributing
GitResume is MIT licensed (see LICENSE). Issues and pull requests are welcome.
Run it
Follow docs/quickstart.md: backend on port 5000 (python run.py in backend/), frontend on port 5173 (npm run dev in frontend/). Install Tectonic if you touch templates or PDF code.
Before opening a PR:
- Backend tests live in
backend/tests/test_fixes.pyand use pytest, which is not inrequirements.txt. Install it in your venv and runpython -m pytest testsfrombackend/. cd frontend && npm run lint && npm run build(the build runstsc -b). At the time of writing lint reports onereact-hooks/set-state-in-effecterror inApp.tsxand one warning; check that you add none.- Start the backend and check
GET /api/health, then do one full run in the browser: scan a username, generate, switch templates, check the PDF preview, download the.tex. - If you change a prompt in
backend/app/ai.py, say what you ran it against.
Layout
backend/app/main.py: FastAPI routes and CORSbackend/app/github.py: GitHub fetching and repo scoringbackend/app/ai.py: provider selection, prompts, tailoring helpers, no-key fallbackbackend/app/resume.py: template list and LaTeX renderingbackend/app/pdf.py: Tectonic lookup and PDF compilebackend/app/templates/<id>.tex.j2: the four LaTeX templatesfrontend/src/App.tsx: app state and API callsfrontend/src/components/: login, portal, editor, preview, modals, chatfrontend/src/resumeUtils.ts,types.ts,api.ts: normalization, tailor helpers, types, API basedocs/: this guide (rendered bysite/)
Add a template
Add backend/app/templates/<id>.tex.j2 (Jinja with <% %> blocks, << >> variables, <# #> comments) and an entry in TEMPLATES in backend/app/resume.py. Respect each project’s hidden flag. Compile it with Tectonic before opening a PR.
Branches and PRs
- Branch from
main(existing branches use prefixes likeperf/andclaude/). - Keep changes focused. Do not reformat unrelated lines.
- Commit messages in this repo follow
feat:,fix:,refactor:prefixes. - In the PR, say what changed and what you ran to check it.
Docs
Docs must match the code on main. If you change a default, port, env var or UI label, update the matching page in docs/. Do not add claims about metrics or results you have not measured.
Never commit
API keys, tokens or .env files.
This page is CONTRIBUTING.md in the repository, rendered as written.