How petr-ngn/skill-matcher works
Project type and purpose
• This is a full-stack, serverless web application for skill matching and scoring of volunteers, built on the Flask framework (Python 3.9.16).
• It is designed to run on AWS Lambda (via Serverless framework), connect in real time to a Snowflake data warehouse (loaded by Keboola ETL from sources such as Slack and Airtable), and provide an interactive frontend (HTML/CSS/JavaScript) for non-profit recruitment workflows.
File structure
• Top level:
• .github/workflows/deploy.yml – CI/CD pipeline for automated deployment.
• requirements.yml / requirements.txt – Conda and pip dependencies.
• web_app/ – contains all application logic and assets.
• Inside web_app/:
• app.py – Flask application entry point (routes for login, form, result, skills hint, email).
• serverless.yml – configuration for deploying the Flask app to AWS Lambda + API Gateway.
• inputs/ – configuration and secret files (.env, config.yaml, email.txt, skills_map.json).
• templates/ – Jinja2 HTML templates (login.html, form.html, result.html, skills.html).
• static/ – client assets: CSS (styling), JS (form handling, result rendering, skills options), fonts, images.
Relevant insights from the README
• High-level architecture calls out:
• Flask backend with real-time Snowflake connectivity.
• Keboola ETL pipeline feeding Snowflake from multiple sources.
• Serverless (AWS Lambda + API Gateway) deployment.
• Frontend pages for login, form input, skill hint modal, results table, and email template integration with Gmail (via Bcc and mailto).
• Scoring algorithm implemented in Python: reads skills_map, computes cosine similarity, distance metrics (Euclidean, Manhattan, Mahalanobis), inverts distances to scores, returns ranked results.
Detail without overcomplication
• Break the system into the components above, but avoid micro-detailing every file.
• “moving parts” (CI/CD, ETL, database, backend, frontend, external email).