How helitoo/universities works
Project type and purpose
• From the file tree and README, this is a multi-page, front-end-heavy, static web application (“Cổng Đại học”) that helps students:
• Take a Holland personality test
• Calculate real exam scores with various formulas
• Query programs and universities based on results
• Plot score distributions
• Convert scores between exam systems
• Read plain informational pages
• Although the UI is pure HTML/CSS/JS, it relies on a Supabase backend for data storage/retrieval. A separate Python-based data-ingestion pipeline (Selenium + Pandas + sentence_transformers) populates Supabase but is not part of this repo.
File structure
• index.html (entry point)
• pages/… (individual HTML pages for each function)
• styles/… (CSS, including Bootstrap overrides)
• script/… (one JS file per page + model modules)
• e.g. holland.js + holland_model.js, filter.js + filter_model.js, etc.
• Chart.js usage in “compare.js” for plotting
• Supabase calls live in the model modules (query_model.js, filter_model.js, etc.)
• No server code here: the site is deployed as static files (e.g. on Netlify).
README for extra insights
• Front-end stack: Bootstrap + Chart.js
• Database: Supabase
• Data pipeline (external): Selenium, Pandas, sentence_transformers
Main components
a. Client browser (User)
b. Static Host / CDN (e.g. Netlify) serving HTML/CSS/JS
c. Front-end code organized into:
• Pages & Views (pages/*.html + styles)
• Controllers/Interaction (script/*.js)
• Model modules (script/*_model.js)
• Chart.js library
d. Supabase (Postgres DB + REST/API + Auth)
e. Data-Ingestion Pipeline (Python services with Selenium, Pandas, sentence_transformers)
f. External resources:
• 3rd-party scoring algorithms (if any)
• Any 3rd-party data sources the pipeline scrapes
Relationships & data flows
• User → Static Host: fetch HTML/CSS/JS
• Browser → Supabase: REST calls issued by model modules for queries, score lookups, program listings
• Browser → Chart.js: input data from Supabase → render charts
• Data Pipeline → Supabase: batch/ETL jobs push normalized data
• (Optional) Data Pipeline → External Sites: scrape pages via Selenium
Architectural patterns & design principles
• Clear separation of concerns in front-end:
• “View” layer: HTML/CSS
• “Controller/Service” layer: script/*.js
• “Model” layer: script/*_model.js which encapsulates Supabase queries
• Micro-ETL pattern for data ingestion (scrape → transform → load)
• Multi-page static app (not a SPA), enabling simple page-based routing
Final checklist
• All components labeled (Browser, Host, DB, Pipeline, External Data Sources)
• Call out key technologies (Bootstrap, Chart.js, Supabase, Selenium, Pandas, sentence_transformers)