Contribution Guide
Relevant source files
The following files were used as context for generating this wiki page:
This guide provides technical instructions and guidelines for developers looking to contribute to the Resume Matcher project. It covers local environment setup, project architecture, coding standards, and the contribution workflow. The project is in active development, and contributions from the community are welcome. For feature requests or discussions, please open an issue on GitHub or join the project's Discord server.
Sources: README.md:29-32, AGENTS.md:162-165
Getting Started: Local Setup
To begin contributing, you must set up the development environment on your local machine. The project consists of a Python/FastAPI backend and a Next.js frontend.
Sources: SETUP.md:3-6
Prerequisites
Ensure the following tools are installed on your system before proceeding.
| Tool | Minimum Version | Installation Guide |
|---|---|---|
| Python | 3.13+ | python.org |
| Node.js | 22+ | nodejs.org |
| uv | Latest | astral.sh/uv |
| Git | Any | git-scm.com |
Sources: SETUP.md:20-27, README.md:209-213
Quick Start Workflow
The following diagram illustrates the fastest way to get the application running locally.
This diagram shows the parallel setup process for the backend and frontend services.
Sources: SETUP.md:41-56, README.md:218-229
After starting both services, navigate to http://localhost:3000 in your browser. You must configure an AI provider in the Settings page before the application is fully functional.
Sources: SETUP.md:58-61, SETUP.md:166-171
Project Structure
The repository is a monorepo containing the backend and frontend applications within the apps/ directory.
This diagram outlines the main directories and key files within the project structure.
Sources: SETUP.md:249-272, AGENTS.md:29-53
| Directory/File | Description |
|---|---|
apps/backend/ | The Python FastAPI backend application. |
apps/backend/app/ | Core backend logic, including routers, services, and schemas. |
apps/backend/data/ | Auto-created directory for TinyDB JSON database files. |
apps/frontend/ | The Next.js/React frontend application. |
apps/frontend/app/ | Next.js App Router pages (dashboard, builder, etc.). |
apps/frontend/lib/ | Utility functions and the API client for communicating with the backend. |
docs/ | Additional project documentation. |
docker-compose.yml | Docker configuration for containerized deployment. |
Sources: SETUP.md:249-272, AGENTS.md:29-53
Development Commands
The following commands are essential for the development workflow.
Backend (apps/backend)
| Command | Description |
|---|---|
uv run uvicorn app.main:app --reload --port 8000 | Start the development server with auto-reload. |
uv sync | Install/update Python dependencies. |
uv run pytest | Run backend tests. |
Sources: SETUP.md:176-189
Frontend (apps/frontend)
| Command | Description |
|---|---|
npm run dev | Start the development server with fast refresh. |
npm install | Install Node.js dependencies. |
npm run build | Build the application for production. |
npm run lint | Run the linter to check for code quality issues. |
npm run format | Format code using Prettier. |
Sources: SETUP.md:193-207
Configuration
AI Provider Setup
Resume Matcher requires an AI provider for its core features. Configuration can be done via the UI at /settings or by editing the apps/backend/.env file.
The backend supports multiple LLM providers through LiteLLM.
| Provider | LLM_PROVIDER | Example LLM_MODEL | API Key Required |
|---|---|---|---|
| Ollama | ollama | llama3.2 | No |
| OpenAI | openai | gpt-4o-mini | Yes |
| Anthropic | anthropic | claude-3-5-sonnet-20241022 | Yes |
| Google Gemini | gemini | gemini-1.5-flash | Yes |
| OpenRouter | openrouter | anthropic/claude-3.5-sonnet | Yes |
| DeepSeek | deepseek | deepseek-chat | Yes |
Sources: SETUP.md:120-131, README.md:233-242, apps/frontend/app/(default)/settings/page.tsx:32-39
For local development with Ollama, set the .env variables as follows:
LLM_PROVIDER=ollama
LLM_MODEL=llama3.2
LLM_API_BASE=http://localhost:11434
# LLM_API_KEY is not needed for Ollama
Sources: SETUP.md:143-147
Environment Files
- Backend: Create
apps/backend/.envby copying from.env.example. This file holds API keys and server settings. - Frontend: The frontend does not typically require an environment file unless the backend is running on a non-default URL. If needed, create
apps/frontend/.env.localfrom.env.sample.
Sources: AGENTS.md:104-107, SETUP.md:83-85
AI & LLM Workflow
The backend uses LiteLLM to interface with various AI providers, ensuring a consistent API for all LLM calls.
LLM Call Sequence
The following diagram shows the sequence of an AI-powered operation, such as improving a resume.
This diagram illustrates how a user action on the frontend triggers a backend process that uses an LLM to generate tailored content and returns it for display.
Sources: apps/frontend/app/(default)/tailor/page.tsx:43-63, AGENTS.md:124-127, AGENTS.md:132-135
Prompt Management
All LLM prompt templates are centralized in apps/backend/app/prompts/templates.py. This file defines the structure and instructions for various AI tasks, such as parsing a resume, extracting keywords, and improving content. Prompts use {variable} placeholders for dynamic data insertion.
A key feature is the inclusion of a JSON schema example within prompts that require structured output, guiding the LLM to produce the correct format.
Sources: apps/backend/app/prompts/templates.py:1-167, AGENTS.md:140-144
Coding Style & Guidelines
To maintain consistency, all contributions must adhere to the project's coding style.
-
Backend (Python):
- Use Python 3.11+ with 4-space indents.
- Apply type hints to all function definitions.
- Use
asyncfunctions for all I/O-bound operations (database, LLM calls). - Log detailed errors server-side but return generic HTTP exceptions to the client.
- Use
copy.deepcopy()for mutable default values to prevent shared state bugs.
-
Frontend (TypeScript/React):
- Follow the Swiss International Style design system defined in
docs/style-guide.md. - Use PascalCase for components and camelCase for functions/variables.
- Employ Tailwind CSS utility classes for all styling.
- Run Prettier (
npm run format) before committing changes.
- Follow the Swiss International Style design system defined in
Sources: AGENTS.md:78-103
Commit & Pull Request Process
- Commit messages should be concise, using a sentence-style subject (e.g.,
Add custom section reordering to builder). - In the Pull Request description, reference any related issues (e.g.,
Fixes #123). - Clearly call out any changes to the database schema or LLM prompts.
- For UI or API changes, include screenshots and describe local verification steps.
Sources: AGENTS.md:118-122
Conclusion
This guide provides the foundational knowledge needed to contribute to Resume Matcher. By following the setup instructions, understanding the architecture, and adhering to the established coding and contribution guidelines, you can effectively help improve the project. For further questions, the Discord community and GitHub Issues are the best places to seek help.
Sources: SETUP.md:275-280