This commit is contained in:
Alvin-Zilverstand committed 2026-11-09 15:19:44 +01:00
1 parent ae2c99d71a
commit 846054b7b9
25 files changed
+2513 -148

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
*
!Dockerfile
!package.json
!scripts/
!scripts/**
!content/
!content/**
!tests/
!tests/**
!docker/
!docker/nginx.conf
!index.html
!app.js
!styles.css
!favicon.svg
+5
View File
@@ -0,0 +1,5 @@
# For your separate Nginx Proxy Manager box, replace 127.0.0.1 below
# with the portfolio Docker guest's LAN IP (NOT the proxy box's IP).
# Loopback is retained as a safe default until you configure that address.
BIND_ADDRESS=127.0.0.1
PORTFOLIO_PORT=8080
+1
View File
@@ -1,3 +1,4 @@
dist/
node_modules/
*.log
.env
+18
View File
@@ -0,0 +1,18 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json ./
COPY scripts/ ./scripts/
COPY content/ ./content/
COPY tests/ ./tests/
COPY index.html app.js styles.css favicon.svg ./
RUN npm test && npm run build
FROM nginx:stable-alpine
COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist/ /usr/share/nginx/html/
USER nginx
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -q -O /dev/null http://127.0.0.1:8080/healthz || exit 1
ENTRYPOINT ["nginx"]
CMD ["-g", "daemon off;"]
+68
View File
@@ -0,0 +1,68 @@
# Alvin Zilverstand — portfolio
A custom, bilingual static portfolio for VISTA college Heerlen. Dark project journal with project dossiers, repository links and a provisional SBB evidence index. No external fonts, tracking, framework, CMS, runtime API requests or production Node service.
## Run locally
Requires Node 22 or newer. No dependency installation is necessary.
```sh
npm run dev
```
Open http://127.0.0.1:4173. Set `PORT` to change the port. The development server binds to loopback only.
```sh
npm test
npm run build
```
The build copies the five website files into `dist/`. It can be hosted at a domain root or a subdirectory. Hash-based routes mean no server fallback configuration is needed. Dutch is the default; `?lang=en#evidence` opens English evidence navigation. Language switching preserves the current page.
## Maintain content
See [the codebase index](docs/codebase-index.md) for the file map and rendering dependencies.
Content editing stays on your computer. There is no public admin page or write API.
- **Add a project:** run `npm run project:add -- my-project`. Open the new `content/projects/my-project.json` and replace the placeholder text.
- **Edit a project:** open its file in `content/projects/`. Text pairs are `[Dutch, English]`. Change `number` to change the display order; the first project is featured on the homepage.
- **Delete a project:** delete its JSON file. Its project card and evidence-index entries disappear on the next preview refresh or build.
- **Add/edit/delete an item:** edit the project's `evidence` array. Copy an existing entry to add one, change its values to edit it, or remove the entry to delete it. An empty array `[]` is allowed.
- **Profile and processes:** edit `content/settings.json`.
An evidence item looks like this:
```json
{
"label": ["Testverslag", "Test report"],
"path": "projects/my-project/tests.md",
"type": "MD",
"codes": ["B1-K1-W4"]
}
```
Use `"directory": true` for a folder. Paths are relative to the school repository. Keep project `id` values stable to preserve links. Use exactly three `nodes` for the system diagram. Project numbers and challenge numbers are strings.
Run `npm run dev` and refresh the browser to preview saved edits. Invalid content will prevent the preview content module from loading; run `npm run content` for a descriptive validation error. Run `npm run build` to validate and prepare publication. `content.js` is generated; do not edit it directly. `npm run content` regenerates it without building.
Only deploy `dist/`. Everything in the generated content is public, so keep credentials and private documents out of these files. Repository links remain pinned to the `revision` in `content/settings.json`; update it after reviewing a newer snapshot.
## Finish the exam content
The interface is functional; the exam dossier is not yet complete. Summaries are based on the supplied school repository, not invented personal experience. Artifact paths were checked against the repository tree. DOCX contents were not reviewed and the source projects' test scripts were not executed.
Before submission, add your personal contribution and reflection for every case study, confirm solo/team context, include actual test results, and substantiate improvement claims. Add evidence for B1-K2-W1, W2 and W3 (collaboration, presentation and evaluation). The current mappings are suggestions, not assessment decisions. Ask the examiner which artifacts and authenticity statements VISTA requires. General subjects, electives and institution-specific requirements are outside this vocational index.
The source is SBB's 2024 qualification for Software Developer, code 25998:
https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420
English process names are informal translations. Reviewed 9 November 2026.
Direct contact details, a CV, screenshots, assessed outcomes and personal reflections were not supplied, so the site does not invent them. Add these as real material becomes available. Project diagrams illustrate structure; they are not screenshots of running applications.
## Host on Proxmox with Docker
See [Docker hosting instructions](docs/docker-hosting.md) for installation, network access, reverse proxies and content updates.
Run `docker compose up -d --build` from the repository on your Docker guest. Docker builds from the JSON source files; no manual build or Node installation is needed on the guest. The default binding is localhost only. Configure `.env` as described in the guide for LAN or proxy access.
+80 -78
View File
@@ -1,78 +1,80 @@
import { profile, projects, processes, source } from './content.js';
const main = document.querySelector('main');
let lang = new URLSearchParams(location.search).get('lang') === 'en' ? 'en' : 'nl';
const t = pair => pair[lang === 'nl' ? 0 : 1];
const esc = value => String(value).replace(/[&<>"']/g, c => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
const tx = pair => esc(t(pair));
const ext = (url, label, cls = '') => `<a class="${cls}" href="${esc(url)}" target="_blank" rel="noopener noreferrer">${label}<span aria-hidden="true"> ↗</span></a>`;
const badge = text => `<span class="tag">${esc(text)}</span>`;
const route = () => location.hash.slice(1) || 'home';
const go = (id, label, cls = '') => `<a class="${cls}" href="#${id}">${label}</a>`;
function header() {
const current = route();
document.querySelector('#header').innerHTML = `<div class="header-inner">
${go('home', '<span class="monogram">az<span>_</span></span><span class="brand-name">Alvin Zilverstand</span>', 'brand')}
<nav aria-label="${t(['Hoofdnavigatie','Main navigation'])}">${[['work',['Werk','Work']],['evidence',['Bewijsindex','Evidence']],['about',['Over mij','About']]].map(([id,label]) => `<a href="#${id}" ${current === id || (id === 'work' && current.startsWith('project/')) ? 'aria-current="page"' : ''}>${tx(label)}</a>`).join('')}</nav>
<div class="languages" aria-label="Language">${['nl','en'].map(l => `<button type="button" data-lang="${l}" lang="${l}" aria-pressed="${lang === l}">${l.toUpperCase()}</button>`).join('')}</div>
</div>`;
document.querySelectorAll('[data-lang]').forEach(button => button.addEventListener('click', () => {
lang = button.dataset.lang;
const url = new URL(location.href); url.searchParams.set('lang', lang); history.replaceState(null, '', url);
render(false);
document.querySelector(`[data-lang="${lang}"]`).focus();
}));
}
function footer() {
document.querySelector('footer').innerHTML = `<div><span class="mono">AZ / PORTFOLIO</span><p>Alvin Zilverstand <span class="muted">· VISTA college, Heerlen</span></p></div><div class="footer-links">${ext(profile.github,'GitHub')}${ext(profile.gitea,'Gitea')}${go('evidence',tx(['Bewijsindex','Evidence index']))}</div><span class="mono muted">${tx(['In ontwikkeling','Work in progress'])} / 2026</span>`;
}
function system(p, large = false) {
return `<div class="system ${p.id} ${large ? 'large' : ''}" role="img" aria-label="${esc(t(['Schematische weergave: ','Schematic view: ']) + p.nodes.join(' → '))}"><div class="system-top mono"><span>SYS.${p.number}</span><span>${tx(['SYSTEEMSCHEMA','SYSTEM MAP'])}</span><span class="dot"></span></div><div class="diagram">${p.nodes.map((node,i)=>`${i ? '<span class="wire" aria-hidden="true"></span>' : ''}<div class="node"><span class="node-icon" aria-hidden="true">${['◫','⌘','▤'][i]}</span><span>${esc(node)}</span><small class="mono">0${i+1}</small></div>`).join('')}</div><div class="system-bottom mono"><span>${p.stack.slice(0,2).join(' / ')}</span><span>CH.${p.challenge}</span></div></div>`;
}
function projectRow(p) {
return `<article class="project-row"><span class="project-number mono">/${p.number}</span><div class="project-copy"><p class="eyebrow">CHALLENGE ${p.challenge} <span>· ${tx(p.kind)}</span></p><h3>${go(`project/${p.id}`,tx(p.name))}</h3><p>${tx(p.intro)}</p><div class="tags">${p.stack.map(badge).join('')}</div></div>${go(`project/${p.id}`,`<span>${tx(['Bekijk project','Explore project'])}</span><span aria-hidden="true">↗</span>`,'row-link')}</article>`;
}
function home() {
const p = projects[0];
return `<section class="hero"><div class="hero-copy"><p class="eyebrow"><span class="dot"></span> SOFTWARE DEVELOPER / ${tx(['IN OPLEIDING','IN TRAINING'])}</p><h1>${tx(['Van idee','From idea'])}<br>${tx(['naar iets','to something'])}<br><em>${tx(['dat werkt.','that works.'])}</em></h1><p class="hero-intro">${tx(['Ik ben Alvin. Derdejaars Software Developer bij VISTA college in Heerlen. Hier laat ik zien wat ik bouw, hoe het in elkaar zit en wat ik nog leer.','I’m Alvin, a third-year Software Developer student at VISTA college in Heerlen. This is what I build, how it fits together, and what I’m still learning.'])}</p><div class="actions">${go('work',`${tx(['Ontdek mijn werk','Explore my work'])} <span aria-hidden="true">↗</span>`,'button primary')}${go('evidence',tx(['Naar de bewijsindex','View the evidence index']),'text-link')}</div></div><div class="hero-aside"><div class="edition mono"><span>FIELDNOTES / 001</span><span>2024—2026</span></div>${system(p,true)}<div class="aside-caption"><span class="mono">01 /</span><div><strong>${tx(p.name)}</strong><p>${tx(['Van requirements naar reserveringen.','From requirements to reservations.'])}</p></div>${go('project/warehouse','↗','circle-link')}</div><div class="study-stamp"><span class="mono">${tx(['NU','NOW'])}</span><span>VISTA college · Heerlen</span><span>${tx(['Leerjaar 3','Year 3'])}</span></div></div></section>
<section class="section"><div class="section-heading"><div><p class="eyebrow">01 / ${tx(['SELECTIE','SELECTED'])}</p><h2>${tx(['Werk met een verhaal.','Work with a story.'])}</h2></div><span class="mono muted">03 ${tx(['PROJECTEN','PROJECTS'])}</span></div>${projects.map(projectRow).join('')}</section>
<section class="exam-callout"><div><p class="eyebrow">02 / ${tx(['VAN PROJECT NAAR BEWIJS','FROM PROJECT TO EVIDENCE'])}</p><h2>${tx(['De code is het begin.','The code is the starting point.'])}</h2><p>${tx(['Een project vertelt meer met de keuzes, documenten en tests ernaast. De bewijsindex verbindt die onderdelen met de acht beroepsspecifieke SBB-werkprocessen.','A project says more with its decisions, documents, and tests alongside it. The evidence index connects those artifacts to the eight vocational SBB work processes.'])}</p>${go('evidence',`${tx(['Open bewijsindex','Open evidence index'])} ↗`,'text-link')}</div><div class="index-preview" aria-hidden="true">${[['01','SCOPE'],['02','DESIGN'],['03','BUILD'],['04','TEST']].map(([n,s])=>`<div><span>${n}</span><strong>${s}</strong><span class="small-line"></span></div>`).join('')}</div></section>`;
}
function work() {
return `<section class="page-heading"><p class="eyebrow">01 / ${tx(['PROJECTARCHIEF','PROJECT ARCHIVE'])}</p><h1>${tx(['Gebouwd. Getest.','Built. Tested.'])}<br><em>${tx(['Verder geleerd.','Still learning.'])}</em></h1><p>${tx(['Drie schoolprojecten, bekeken vanuit het probleem, de uitvoering en het beschikbare bewijs. De broncode blijft één klik verder.','Three school projects, through their problems, implementation, and available evidence. The source code is always one click away.'])}</p></section><section class="section work-list">${projects.map(p=>`<div>${system(p)}${projectRow(p)}</div>`).join('')}</section><div class="archive-link">${ext(profile.school,tx(['Bekijk het volledige schoolarchief','Browse the full school archive']),'text-link')}</div>`;
}
function detail(p) {
return `<section class="page-heading project-heading">${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}<p class="eyebrow">PROJECT ${p.number} / CHALLENGE ${p.challenge}</p><h1>${tx(p.name)}<span class="accent">.</span></h1><p>${tx(p.intro)}</p><div class="tags">${p.stack.map(badge).join('')}</div></section>${system(p,true)}<div class="project-layout"><aside class="project-meta"><span class="eyebrow">${tx(['PROJECTDOSSIER','PROJECT FILE'])}</span><dl><dt>${tx(['Opleiding','Course'])}</dt><dd>Software Developer</dd><dt>${tx(['Context','Context'])}</dt><dd>${tx(['Schoolproject · leerjaar 2','School project · year 2'])}</dd><dt>${tx(['Eigen bijdrage','My contribution'])}</dt><dd>${tx(['Nog te beschrijven','Still to be documented'])}</dd><dt>${tx(['Beoordelingsstatus','Assessment status'])}</dt><dd>${tx(['Niet vastgesteld','Not established'])}</dd></dl>${ext(source(p.path,true),tx(['Open broncode','Open source code']),'text-link')}</aside><div class="project-story">${[[['De opdracht','The assignment'],p.context],[['Hoe het is opgebouwd','How it is built'],p.implementation],[['Keuzes & aandachtspunten','Decisions & considerations'],p.decisions]].map(([title,body],i)=>`<section><p class="eyebrow">0${i+1}</p><h2>${tx(title)}</h2><p>${tx(body)}</p></section>`).join('')}<section><p class="eyebrow">04</p><h2>${tx(['Bronnen & bewijs','Sources & evidence'])}</h2><p class="muted">${tx(['Dit zijn gevonden bronnen, geen goedgekeurde examenbewijzen. Documentinhoud en testresultaten moeten nog worden gecontroleerd.','These are located sources, not approved exam evidence. Document contents and test results still need review.'])}</p><div class="evidence-links">${p.evidence.map(e=>ext(source(e.path,e.directory),`<span><small class="mono">${e.type}</small>${tx(e.label)}</span>`)).join('')}</div></section><section class="reflection"><p class="eyebrow">05 / ${tx(['PERSOONLIJKE REFLECTIE','PERSONAL REFLECTION'])}</p><h2>${tx(['Het verhaal achter mijn bijdrage.','The story behind my contribution.'])}</h2><p>${tx(['Nog aan te vullen door Alvin: welke onderdelen heb ik zelf gemaakt, met wie werkte ik samen, welke feedback kreeg ik en wat zou ik anders doen?','To be completed by Alvin: which parts did I build myself, who did I work with, what feedback did I receive, and what would I do differently?'])}</p></section><div class="tags">${p.codes.map(c=>go(`evidence/${c}`,c,'tag')).join('')}</div></div></div>`;
}
function evidence(filter = '') {
const selected = processes.some(p=>p.code === filter) ? filter : '';
return `<section class="page-heading"><p class="eyebrow">02 / ${tx(['EXAMENPORTFOLIO','EXAM PORTFOLIO'])}</p><h1>${tx(['Van werk','From work'])}<br><em>${tx(['naar bewijs.','to evidence.'])}</em></h1><p>${tx(['Bronnen per werkproces. Een navigeerbare voorbereiding op mijn examen, met zichtbaar onderscheid tussen gevonden materiaal en wat nog ontbreekt.','Sources by work process. A navigable preparation for my exam, making the distinction between located material and missing evidence visible.'])}</p></section><div class="evidence-toolbar"><div><label for="process-filter">${tx(['Werkproces','Work process'])}</label><select id="process-filter"><option value="">${tx(['Alle werkprocessen','All work processes'])}</option>${processes.map(p=>`<option value="${p.code}" ${p.code===selected?'selected':''}>${p.code} · ${tx(p.title)}</option>`).join('')}</select></div><button id="print" class="button">${tx(['Afdrukken / PDF','Print / PDF'])} ↗</button></div><div class="notice"><span class="status-dot"></span><p>${tx(['In opbouw. Koppelingen zijn voorlopig; aanwezigheid van code of een document bewijst nog geen beheersing. Persoonlijke bijdrage, resultaten en beoordeling moeten worden toegevoegd. Stem de definitieve bewijslast af met de examinator.','In progress. Mappings are provisional; code or a document alone does not demonstrate competence. Personal contributions, results, and assessment need to be added. Agree the final evidence requirements with the examiner.'])}</p></div><section id="process-list" class="process-list">${processes.filter(p=>!selected||p.code===selected).map(processRow).join('')}</section><div class="source-note"><p class="mono">SBB / 25998 / 2024</p><p>${tx(['Deze index volgt de acht beroepsspecifieke werkprocessen uit het gekoppelde dossier. Generieke vakken, keuzedelen en VISTA-examenafspraken vallen buiten deze index. Engelse labels zijn eigen vertalingen.','This index follows the eight vocational work processes in the linked qualification. General subjects, electives, and VISTA exam arrangements are outside this index. English labels are informal translations.'])}</p>${ext(profile.qualification,tx(['Lees het officiële kwalificatiedossier','Read the official qualification document']),'text-link')}</div>`;
}
function processRow(p) {
const found = projects.flatMap(project=>project.evidence.filter(e=>e.codes.includes(p.code)).map(e=>({project,e})));
return `<details class="process" ${route()===`evidence/${p.code}`?'open':''}><summary><span class="mono process-code">${p.code}</span><span class="process-title">${tx(p.title)}</span><span class="evidence-status ${found.length?'located':'missing'}">${found.length ? `${found.length} ${tx(['bronnen','sources'])}` : tx(['Aanvullen','To add'])}</span><span class="expand" aria-hidden="true">+</span></summary><div class="process-content"><p>${tx(p.description)}</p>${found.length?`<div class="evidence-links">${found.map(({project,e})=>`<div class="evidence-entry">${ext(source(e.path,e.directory),`<span><small class="mono">${e.type}</small>${tx(e.label)}</span>`)}${go(`project/${project.id}`,tx(project.name),'evidence-project')}</div>`).join('')}</div><p class="pending">${tx(['Te controleren: inhoud, eigen bijdrage en geschiktheid voor het examen.','To verify: contents, personal contribution, and suitability for the exam.'])}</p>`:`<div class="empty-state">${tx(['Nog geen bewijs geselecteerd. Voeg een eigen document, feedback of een concreet projectvoorbeeld toe.','No evidence selected yet. Add your own document, feedback, or a specific project example.'])}</div>`}</div></details>`;
}
function about() {
return `<section class="page-heading"><p class="eyebrow">03 / ${tx(['OVER MIJ','ABOUT ME'])}</p><h1>Alvin<br><em>Zilverstand.</em></h1><p>${tx(['Software Developer in opleiding. Derdejaars bij VISTA college in Heerlen.','Software Developer in training. Third-year student at VISTA college in Heerlen.'])}</p></section><section class="about-grid"><div><h2>${tx(['Leren door te bouwen.','Learning by building.'])}</h2><p>${tx(['Mijn schoolwerk loopt uiteen van websites en PHP-applicaties tot een magazijnsysteem en narrowcasting. Dit portfolio brengt de projecten en de bijbehorende bronnen bij elkaar.','My schoolwork ranges from websites and PHP applications to a warehouse system and narrowcasting. This portfolio brings those projects and their sources together.'])}</p><p>${tx(['Ik bouw dit portfolio voor mijn eindexamen. Daarna wil ik het verder gebruiken om mijn werk aan toekomstige werkgevers te laten zien.','I’m building this portfolio for my final exam. After that, I want to keep using it to show my work to future employers.'])}</p></div><div class="profile-facts"><div><span>${tx(['Opleiding','Course'])}</span><strong>Software Developer</strong></div><div><span>Campus</span><strong>VISTA · Heerlen</strong></div><div><span>${tx(['Studiefase','Study stage'])}</span><strong>${tx(['Leerjaar 3','Year 3'])}</strong></div><div><span>${tx(['Werk & broncode','Work & source'])}</span><strong>GitHub + Gitea</strong></div></div></section><section class="contact-section"><p class="eyebrow">${tx(['VERDER KIJKEN','TAKE A CLOSER LOOK'])}</p><h2>${tx(['De rest staat in de repositories.','There’s more in the repositories.'])}</h2><div class="actions">${ext(profile.github,'GitHub','button primary')}${ext(profile.gitea,'Gitea','button')}</div><p class="muted">${tx(['Een rechtstreeks contactadres en cv worden later toegevoegd.','A direct contact address and CV will be added later.'])}</p></section>`;
}
function render(focus = false) {
document.documentElement.lang = lang;
header(); footer();
const r = route();
let title = t(['Portfolio','Portfolio']);
if (r === 'home') main.innerHTML = home();
else if (r === 'work') { main.innerHTML = work(); title = t(['Werk','Work']); }
else if (r === 'about') { main.innerHTML = about(); title = t(['Over mij','About']); }
else if (r === 'evidence' || r.startsWith('evidence/')) {
main.innerHTML = evidence(r.split('/')[1]); title = t(['Bewijsindex','Evidence index']);
document.querySelector('#process-filter').addEventListener('change', e => { location.hash = e.target.value ? `evidence/${e.target.value}` : 'evidence'; });
document.querySelector('#print').addEventListener('click', () => { document.querySelectorAll('.process').forEach(d=>d.open=true); window.print(); });
} else {
const p = projects.find(p=>r === `project/${p.id}`);
if (p) { main.innerHTML = detail(p); title = t(p.name); }
else main.innerHTML = `<section class="page-heading"><h1>404</h1><p>${tx(['Deze pagina bestaat niet.','This page does not exist.'])}</p>${go('home',tx(['Terug naar het begin','Back to home']),'button')}</section>`;
}
document.title = `${title} — Alvin Zilverstand`;
if (focus) { main.focus({preventScroll:true}); window.scrollTo(0,0); }
}
window.addEventListener('hashchange',()=>render(true));
render();
import { profile, projects, processes, source } from './content.js';
const main = document.querySelector('main');
let lang = new URLSearchParams(location.search).get('lang') === 'en' ? 'en' : 'nl';
const t = pair => pair[lang === 'nl' ? 0 : 1];
const esc = value => String(value).replace(/[&<>"']/g, c => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
const tx = pair => esc(t(pair));
const ext = (url, label, cls = '') => `<a class="${cls}" href="${esc(url)}" target="_blank" rel="noopener noreferrer">${label}<span aria-hidden="true"> ↗</span></a>`;
const badge = text => `<span class="tag">${esc(text)}</span>`;
const route = () => location.hash.slice(1) || 'home';
document.querySelector('.skip').addEventListener('click', event => { event.preventDefault(); main.focus(); main.scrollIntoView(); });
const go = (id, label, cls = '') => `<a class="${cls}" href="#${id}">${label}</a>`;
function header() {
const current = route();
document.querySelector('#header').innerHTML = `<div class="header-inner">
${go('home', '<span class="monogram">az<span>_</span></span><span class="brand-name">Alvin Zilverstand</span>', 'brand')}
<nav aria-label="${t(['Hoofdnavigatie','Main navigation'])}">${[['work',['Werk','Work']],['evidence',['Bewijsindex','Evidence']],['about',['Over mij','About']]].map(([id,label]) => `<a href="#${id}" ${current === id || (id === 'work' && current.startsWith('project/')) ? 'aria-current="page"' : ''}>${tx(label)}</a>`).join('')}</nav>
<div class="languages" aria-label="Language">${['nl','en'].map(l => `<button type="button" data-lang="${l}" lang="${l}" aria-pressed="${lang === l}">${l.toUpperCase()}</button>`).join('')}</div>
</div>`;
document.querySelectorAll('[data-lang]').forEach(button => button.addEventListener('click', () => {
lang = button.dataset.lang;
const url = new URL(location.href); url.searchParams.set('lang', lang); history.replaceState(null, '', url);
render(false);
document.querySelector(`[data-lang="${lang}"]`).focus();
}));
}
function footer() {
document.querySelector('footer').innerHTML = `<div><span class="mono">AZ / PORTFOLIO</span><p>Alvin Zilverstand <span class="muted">· VISTA college, Heerlen</span></p></div><div class="footer-links">${ext(profile.github,'GitHub')}${ext(profile.gitea,'Gitea')}${go('evidence',tx(['Bewijsindex','Evidence index']))}</div><span class="mono muted">${tx(['In ontwikkeling','Work in progress'])} / 2026</span>`;
}
function system(p, large = false) {
return `<div class="system ${esc(p.id)} ${large ? 'large' : ''}" role="img" aria-label="${esc(t(['Schematische weergave: ','Schematic view: ']) + p.nodes.join(' → '))}"><div class="system-top mono"><span>SYS.${esc(p.number)}</span><span>${tx(['SYSTEEMSCHEMA','SYSTEM MAP'])}</span><span class="dot"></span></div><div class="diagram">${p.nodes.map((node,i)=>`${i ? '<span class="wire" aria-hidden="true"></span>' : ''}<div class="node"><span class="node-icon" aria-hidden="true">${['◫','⌘','▤'][i]}</span><span>${esc(node)}</span><small class="mono">0${i+1}</small></div>`).join('')}</div><div class="system-bottom mono"><span>${esc(p.stack.slice(0,2).join(' / '))}</span><span>CH.${esc(p.challenge)}</span></div></div>`;
}
function projectRow(p) {
return `<article class="project-row"><span class="project-number mono">/${esc(p.number)}</span><div class="project-copy"><p class="eyebrow">CHALLENGE ${esc(p.challenge)} <span>· ${tx(p.kind)}</span></p><h3>${go(`project/${p.id}`,tx(p.name))}</h3><p>${tx(p.intro)}</p><div class="tags">${p.stack.map(badge).join('')}</div></div>${go(`project/${p.id}`,`<span>${tx(['Bekijk project','Explore project'])}</span><span aria-hidden="true">↗</span>`,'row-link')}</article>`;
}
function home() {
const p = projects[0];
return `<section class="hero"><div class="hero-copy"><h1>${tx(['Van idee','From idea'])}<br>${tx(['naar iets','to something'])}<br><em>${tx(['dat werkt.','that works.'])}</em></h1><p class="hero-intro">${tx(['Ik ben Alvin. Derdejaars Software Developer bij VISTA college in Heerlen. Hier laat ik zien wat ik bouw, hoe het in elkaar zit en wat ik nog leer.','I’m Alvin, a third-year Software Developer student at VISTA college in Heerlen. This is what I build, how it fits together, and what I’m still learning.'])}</p><div class="actions">${go('work',`${tx(['Ontdek mijn werk','Explore my work'])} <span aria-hidden="true">↗</span>`,'button primary')}${go('evidence',tx(['Naar de bewijsindex','View the evidence index']),'text-link')}</div></div><div class="hero-aside"><div class="edition mono"><span>FIELDNOTES / 001</span><span>2024—2026</span></div>${p ? system(p,true) : ''}${p ? `<div class="aside-caption"><span class="mono">${esc(p.number)} /</span><div><strong>${tx(p.name)}</strong><p>${tx(p.kind)}</p></div>${go(`project/${p.id}`, '<span class="sr-only">' + tx(p.name) + '</span>↗','circle-link')}</div>` : ''}<div class="study-stamp"><span class="mono">${tx(['NU','NOW'])}</span><span>VISTA college · Heerlen</span><span>${tx(['Leerjaar 3','Year 3'])}</span></div></div></section>
<section class="section"><div class="section-heading"><div><p class="eyebrow">01 / ${tx(['SELECTIE','SELECTED'])}</p><h2>${tx(['Werk met een verhaal.','Work with a story.'])}</h2></div><span class="mono muted">${String(projects.length).padStart(2, '0')} ${tx(['PROJECTEN','PROJECTS'])}</span></div>${projects.length ? projects.map(projectRow).join('') : emptyProjects()}</section>
<section class="exam-callout"><div><p class="eyebrow">02 / ${tx(['VAN PROJECT NAAR BEWIJS','FROM PROJECT TO EVIDENCE'])}</p><h2>${tx(['De code is het begin.','The code is the starting point.'])}</h2><p>${tx(['Een project vertelt meer met de keuzes, documenten en tests ernaast. De bewijsindex verbindt die onderdelen met de acht beroepsspecifieke SBB-werkprocessen.','A project says more with its decisions, documents, and tests alongside it. The evidence index connects those artifacts to the eight vocational SBB work processes.'])}</p>${go('evidence',`${tx(['Open bewijsindex','Open evidence index'])} ↗`,'text-link')}</div><div class="index-preview" aria-hidden="true">${[['01','SCOPE'],['02','DESIGN'],['03','BUILD'],['04','TEST']].map(([n,s])=>`<div><span>${n}</span><strong>${s}</strong><span class="small-line"></span></div>`).join('')}</div></section>`;
}
function emptyProjects() { return `<p class="empty-state">${tx(['Nog geen projecten toegevoegd.','No projects added yet.'])}</p>`; }
function work() {
return `<section class="page-heading"><p class="eyebrow">01 / ${tx(['PROJECTARCHIEF','PROJECT ARCHIVE'])}</p><h1>${tx(['Gebouwd. Getest.','Built. Tested.'])}<br><em>${tx(['Verder geleerd.','Still learning.'])}</em></h1><p>${tx(['Schoolprojecten, bekeken vanuit het probleem, de uitvoering en het beschikbare bewijs. De broncode blijft één klik verder.','School projects, through their problems, implementation, and available evidence. The source code is always one click away.'])}</p></section><section class="section work-list">${projects.length ? projects.map(p=>`<div>${system(p)}${projectRow(p)}</div>`).join('') : emptyProjects()}</section><div class="archive-link">${ext(profile.school,tx(['Bekijk het volledige schoolarchief','Browse the full school archive']),'text-link')}</div>`;
}
function detail(p) {
return `<section class="page-heading project-heading">${go('work',`← ${tx(['Alle projecten','All projects'])}`,'back-link')}<p class="eyebrow">PROJECT ${esc(p.number)} / CHALLENGE ${esc(p.challenge)}</p><h1>${tx(p.name)}<span class="accent">.</span></h1><p>${tx(p.intro)}</p><div class="tags">${p.stack.map(badge).join('')}</div></section>${system(p,true)}<div class="project-layout"><aside class="project-meta"><span class="eyebrow">${tx(['PROJECTDOSSIER','PROJECT FILE'])}</span><dl><dt>${tx(['Opleiding','Course'])}</dt><dd>Software Developer</dd><dt>${tx(['Context','Context'])}</dt><dd>${tx(['Schoolproject · leerjaar 2','School project · year 2'])}</dd><dt>${tx(['Eigen bijdrage','My contribution'])}</dt><dd>${tx(['Nog te beschrijven','Still to be documented'])}</dd><dt>${tx(['Beoordelingsstatus','Assessment status'])}</dt><dd>${tx(['Niet vastgesteld','Not established'])}</dd></dl>${ext(source(p.path,true),tx(['Open broncode','Open source code']),'text-link')}</aside><div class="project-story">${[[['De opdracht','The assignment'],p.context],[['Hoe het is opgebouwd','How it is built'],p.implementation],[['Keuzes & aandachtspunten','Decisions & considerations'],p.decisions]].map(([title,body],i)=>`<section><p class="eyebrow">0${i+1}</p><h2>${tx(title)}</h2><p>${tx(body)}</p></section>`).join('')}<section><p class="eyebrow">04</p><h2>${tx(['Bronnen & bewijs','Sources & evidence'])}</h2><p class="muted">${tx(['Dit zijn gevonden bronnen, geen goedgekeurde examenbewijzen. Documentinhoud en testresultaten moeten nog worden gecontroleerd.','These are located sources, not approved exam evidence. Document contents and test results still need review.'])}</p><div class="evidence-links">${p.evidence.map(e=>ext(source(e.path,e.directory),`<span><small class="mono">${esc(e.type)}</small>${tx(e.label)}</span>`)).join('')}</div></section><section class="reflection"><p class="eyebrow">05 / ${tx(['PERSOONLIJKE REFLECTIE','PERSONAL REFLECTION'])}</p><h2>${tx(['Het verhaal achter mijn bijdrage.','The story behind my contribution.'])}</h2><p>${tx(['Nog aan te vullen door Alvin: welke onderdelen heb ik zelf gemaakt, met wie werkte ik samen, welke feedback kreeg ik en wat zou ik anders doen?','To be completed by Alvin: which parts did I build myself, who did I work with, what feedback did I receive, and what would I do differently?'])}</p></section><div class="tags">${p.codes.map(c=>go(`evidence/${c}`,c,'tag')).join('')}</div></div></div>`;
}
function evidence(filter = '') {
const selected = processes.some(p=>p.code === filter) ? filter : '';
return `<section class="page-heading"><p class="eyebrow">02 / ${tx(['EXAMENPORTFOLIO','EXAM PORTFOLIO'])}</p><h1>${tx(['Van werk','From work'])}<br><em>${tx(['naar bewijs.','to evidence.'])}</em></h1><p>${tx(['Bronnen per werkproces. Een navigeerbare voorbereiding op mijn examen, met zichtbaar onderscheid tussen gevonden materiaal en wat nog ontbreekt.','Sources by work process. A navigable preparation for my exam, making the distinction between located material and missing evidence visible.'])}</p></section><div class="evidence-toolbar"><div><label for="process-filter">${tx(['Werkproces','Work process'])}</label><select id="process-filter"><option value="">${tx(['Alle werkprocessen','All work processes'])}</option>${processes.map(p=>`<option value="${p.code}" ${p.code===selected?'selected':''}>${p.code} · ${tx(p.title)}</option>`).join('')}</select></div><button id="print" class="button">${tx(['Afdrukken / PDF','Print / PDF'])} ↗</button></div><div class="notice"><span class="status-dot"></span><p>${tx(['In opbouw. Koppelingen zijn voorlopig; aanwezigheid van code of een document bewijst nog geen beheersing. Persoonlijke bijdrage, resultaten en beoordeling moeten worden toegevoegd. Stem de definitieve bewijslast af met de examinator.','In progress. Mappings are provisional; code or a document alone does not demonstrate competence. Personal contributions, results, and assessment need to be added. Agree the final evidence requirements with the examiner.'])}</p></div><section id="process-list" class="process-list">${processes.filter(p=>!selected||p.code===selected).map(processRow).join('')}</section><div class="source-note"><p class="mono">SBB / 25998 / 2024</p><p>${tx(['Deze index volgt de acht beroepsspecifieke werkprocessen uit het gekoppelde dossier. Generieke vakken, keuzedelen en VISTA-examenafspraken vallen buiten deze index. Engelse labels zijn eigen vertalingen.','This index follows the eight vocational work processes in the linked qualification. General subjects, electives, and VISTA exam arrangements are outside this index. English labels are informal translations.'])}</p>${ext(profile.qualification,tx(['Lees het officiële kwalificatiedossier','Read the official qualification document']),'text-link')}</div>`;
}
function processRow(p) {
const found = projects.flatMap(project=>project.evidence.filter(e=>e.codes.includes(p.code)).map(e=>({project,e})));
return `<details class="process" ${route()===`evidence/${p.code}`?'open':''}><summary><span class="mono process-code">${p.code}</span><span class="process-title">${tx(p.title)}</span><span class="evidence-status ${found.length?'located':'missing'}">${found.length ? `${found.length} ${tx(found.length === 1 ? ['bron','source'] : ['bronnen','sources'])}` : tx(['Aanvullen','To add'])}</span><span class="expand" aria-hidden="true">+</span></summary><div class="process-content"><p>${tx(p.description)}</p>${found.length?`<div class="evidence-links">${found.map(({project,e})=>`<div class="evidence-entry">${ext(source(e.path,e.directory),`<span><small class="mono">${esc(e.type)}</small>${tx(e.label)}</span>`)}${go(`project/${project.id}`,tx(project.name),'evidence-project')}</div>`).join('')}</div><p class="pending">${tx(['Te controleren: inhoud, eigen bijdrage en geschiktheid voor het examen.','To verify: contents, personal contribution, and suitability for the exam.'])}</p>`:`<div class="empty-state">${tx(['Nog geen bewijs geselecteerd. Voeg een eigen document, feedback of een concreet projectvoorbeeld toe.','No evidence selected yet. Add your own document, feedback, or a specific project example.'])}</div>`}</div></details>`;
}
function about() {
return `<section class="page-heading"><p class="eyebrow">03 / ${tx(['OVER MIJ','ABOUT ME'])}</p><h1>Alvin<br><em>Zilverstand.</em></h1><p>${tx(['Software Developer in opleiding. Derdejaars bij VISTA college in Heerlen.','Software Developer in training. Third-year student at VISTA college in Heerlen.'])}</p></section><section class="about-grid"><div><h2>${tx(['Leren door te bouwen.','Learning by building.'])}</h2><p>${tx(['Mijn schoolwerk loopt uiteen van websites en PHP-applicaties tot een magazijnsysteem en narrowcasting. Dit portfolio brengt de projecten en de bijbehorende bronnen bij elkaar.','My schoolwork ranges from websites and PHP applications to a warehouse system and narrowcasting. This portfolio brings those projects and their sources together.'])}</p><p>${tx(['Ik bouw dit portfolio voor mijn eindexamen. Daarna wil ik het verder gebruiken om mijn werk aan toekomstige werkgevers te laten zien.','I’m building this portfolio for my final exam. After that, I want to keep using it to show my work to future employers.'])}</p></div><div class="profile-facts"><div><span>${tx(['Opleiding','Course'])}</span><strong>Software Developer</strong></div><div><span>Campus</span><strong>VISTA · Heerlen</strong></div><div><span>${tx(['Studiefase','Study stage'])}</span><strong>${tx(['Leerjaar 3','Year 3'])}</strong></div><div><span>${tx(['Werk & broncode','Work & source'])}</span><strong>GitHub + Gitea</strong></div></div></section><section class="contact-section"><p class="eyebrow">${tx(['VERDER KIJKEN','TAKE A CLOSER LOOK'])}</p><h2>${tx(['De rest staat in de repositories.','There’s more in the repositories.'])}</h2><div class="actions">${ext(profile.github,'GitHub','button primary')}${ext(profile.gitea,'Gitea','button')}</div><p class="muted">${tx(['Een rechtstreeks contactadres en cv worden later toegevoegd.','A direct contact address and CV will be added later.'])}</p></section>`;
}
function render(focus = false) {
document.documentElement.lang = lang;
header(); footer();
const r = route();
let title = t(['Portfolio','Portfolio']);
if (r === 'home') main.innerHTML = home();
else if (r === 'work') { main.innerHTML = work(); title = t(['Werk','Work']); }
else if (r === 'about') { main.innerHTML = about(); title = t(['Over mij','About']); }
else if (r === 'evidence' || r.startsWith('evidence/')) {
main.innerHTML = evidence(r.split('/')[1]); title = t(['Bewijsindex','Evidence index']);
document.querySelector('#process-filter').addEventListener('change', e => { location.hash = e.target.value ? `evidence/${e.target.value}` : 'evidence'; });
document.querySelector('#print').addEventListener('click', () => { document.querySelectorAll('.process').forEach(d=>d.open=true); window.print(); });
} else {
const p = projects.find(p=>r === `project/${p.id}`);
if (p) { main.innerHTML = detail(p); title = t(p.name); }
else main.innerHTML = `<section class="page-heading"><h1>404</h1><p>${tx(['Deze pagina bestaat niet.','This page does not exist.'])}</p>${go('home',tx(['Terug naar het begin','Back to home']),'button')}</section>`;
}
document.title = `${title} — Alvin Zilverstand`;
if (focus) { main.focus({preventScroll:true}); window.scrollTo(0,0); }
}
window.addEventListener('hashchange',()=>render(true));
render();
+18
View File
@@ -0,0 +1,18 @@
services:
portfolio:
build: .
restart: unless-stopped
ports:
- "${BIND_ADDRESS:-127.0.0.1}:${PORTFOLIO_PORT:-8080}:8080"
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,size=16m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
+385 -65
View File
@@ -1,77 +1,397 @@
// Edit portfolio content here. Text pairs are [Dutch, English].
// Generated from content/ by npm run content. Edit the JSON source files.
export const profile = {
name: 'Alvin Zilverstand',
github: 'https://github.com/Alvin-Zilverstand',
gitea: 'https://codealvin.xyz/Alvin-Zilverstand',
school: 'https://github.com/Alvin-Zilverstand/school',
qualification: 'https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420',
reviewed: '2026-11-09',
"name": "Alvin Zilverstand",
"github": "https://github.com/Alvin-Zilverstand",
"gitea": "https://codealvin.xyz/Alvin-Zilverstand",
"school": "https://github.com/Alvin-Zilverstand/school",
"qualification": "https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420",
"reviewed": "2026-11-09"
};
export const revision = 'd420c317abcbd117e0e1dd641674ab3283ab34ba';
export const source = (path, directory = false) => `${profile.school}/${directory ? 'tree' : 'blob'}/${revision}/${path.split('/').map(encodeURIComponent).join('/')}`;
const warehouse = 'projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken';
const planning = 'projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen';
const refactor = 'projects/year_02/challenge_13/Messy-coder-Verbeterd';
const screens = 'projects/year_02/challenge_18/narrow_casting_system';
export const revision = "d420c317abcbd117e0e1dd641674ab3283ab34ba";
export const processes = [
{
"code": "B1-K1-W1",
"title": [
"Afstemmen & plannen",
"Scope & planning"
],
"description": [
"Opdracht, afspraken, planning en voortgang aantonen.",
"Show the assignment, agreements, planning, and progress."
]
},
{
"code": "B1-K1-W2",
"title": [
"Technisch ontwerpen",
"Technical design"
],
"description": [
"Ontwerpkeuzes verbinden aan requirements.",
"Connect design decisions to requirements."
]
},
{
"code": "B1-K1-W3",
"title": [
"Software realiseren",
"Software implementation"
],
"description": [
"Eigen bijdrage onderbouwen met concrete code.",
"Substantiate your contribution with specific code."
]
},
{
"code": "B1-K1-W4",
"title": [
"Software testen",
"Software testing"
],
"description": [
"Testaanpak, uitvoering en resultaten vastleggen.",
"Document the test approach, execution, and results."
]
},
{
"code": "B1-K1-W5",
"title": [
"Verbeteringen voorstellen",
"Proposing improvements"
],
"description": [
"Bevindingen vertalen naar onderbouwde verbeteringen.",
"Turn findings into substantiated improvements."
]
},
{
"code": "B1-K2-W1",
"title": [
"Samenwerken",
"Teamwork"
],
"description": [
"Rolverdeling, afstemming en eigen bijdrage vastleggen.",
"Document roles, coordination, and your contribution."
]
},
{
"code": "B1-K2-W2",
"title": [
"Werk presenteren",
"Presenting work"
],
"description": [
"Presentatie en ontvangen feedback toevoegen.",
"Add a presentation and the feedback received."
]
},
{
"code": "B1-K2-W3",
"title": [
"Samenwerking evalueren",
"Evaluating collaboration"
],
"description": [
"Reflecteren op samenwerking en vervolgstappen.",
"Reflect on collaboration and next steps."
]
}
];
export const projects = [
{
id: 'warehouse', number: '01', challenge: '14 + 15', kind: ['Webapplicatie', 'Web application'],
title: ['Van aanvraag tot uitgifte.', 'From request to checkout.'], name: ['Magazijnbeheer', 'Warehouse management'],
intro: ['Een schoolmagazijn met artikelen, reserveringen en aparte schermen voor studenten en beheerders. Van de eerste requirements naar een applicatie met een database.', 'A school warehouse with items, reservations, and separate interfaces for students and administrators. From initial requirements to a database-backed application.'],
stack: ['JavaScript', 'Node.js', 'Express', 'MongoDB'], codes: ['B1-K1-W1', 'B1-K1-W2', 'B1-K1-W3'],
path: warehouse,
context: ['Challenges 14 en 15 vormen samen een traject van voorbereiding naar realisatie. De schoolrepository bevat klantgesprekken, requirements, een concept en de applicatie.', 'Challenges 14 and 15 connect preparation with implementation. The school repository contains client interviews, requirements, a concept, and the application.'],
implementation: ['De Express-server koppelt routes voor accounts, artikelen, reserveringen en uploads aan MongoDB via Mongoose. De frontend bevat afzonderlijke pagina’s voor student- en beheertaken.', 'The Express server connects account, item, reservation, and upload routes to MongoDB through Mongoose. The frontend has separate pages for student and administrator tasks.'],
decisions: ['De scheiding tussen artikelen en reserveringen is zichtbaar in zowel de datamodellen als de API-routes. Daarmee is de relatie tussen de gebruikershandeling en de opgeslagen gegevens te volgen in de broncode.', 'Items and reservations are separated in both data models and API routes. This makes it possible to trace a user action to its stored data in the source code.'],
nodes: ['Browser', 'Express API', 'MongoDB'],
evidence: [
{ label: ['Requirements & voorbereiding', 'Requirements & preparation'], path: `${planning}/Documentatie/documenten`, directory: true, type: 'DOCX', codes: ['B1-K1-W1', 'B1-K1-W2'] },
{ label: ['Interactief concept', 'Interactive concept'], path: `${planning}/concept`, directory: true, type: 'HTML', codes: ['B1-K1-W2'] },
{ label: ['Server & API-routes', 'Server & API routes'], path: `${warehouse}/server.js`, type: 'JS', codes: ['B1-K1-W3'] },
{ label: ['Artikelen en reserveringen', 'Items and reservations'], path: `${warehouse}/models`, directory: true, type: 'JS', codes: ['B1-K1-W3'] },
"id": "warehouse",
"number": "01",
"challenge": "14 + 15",
"kind": [
"Webapplicatie",
"Web application"
],
"title": [
"Van aanvraag tot uitgifte.",
"From request to checkout."
],
"name": [
"Magazijnbeheer",
"Warehouse management"
],
"intro": [
"Een schoolmagazijn met artikelen, reserveringen en aparte schermen voor studenten en beheerders. Van de eerste requirements naar een applicatie met een database.",
"A school warehouse with items, reservations, and separate interfaces for students and administrators. From initial requirements to a database-backed application."
],
"stack": [
"JavaScript",
"Node.js",
"Express",
"MongoDB"
],
"codes": [
"B1-K1-W1",
"B1-K1-W2",
"B1-K1-W3"
],
"path": "projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken",
"context": [
"Challenges 14 en 15 vormen samen een traject van voorbereiding naar realisatie. De schoolrepository bevat klantgesprekken, requirements, een concept en de applicatie.",
"Challenges 14 and 15 connect preparation with implementation. The school repository contains client interviews, requirements, a concept, and the application."
],
"implementation": [
"De Express-server koppelt routes voor accounts, artikelen, reserveringen en uploads aan MongoDB via Mongoose. De frontend bevat afzonderlijke pagina’s voor student- en beheertaken.",
"The Express server connects account, item, reservation, and upload routes to MongoDB through Mongoose. The frontend has separate pages for student and administrator tasks."
],
"decisions": [
"De scheiding tussen artikelen en reserveringen is zichtbaar in zowel de datamodellen als de API-routes. Daarmee is de relatie tussen de gebruikershandeling en de opgeslagen gegevens te volgen in de broncode.",
"Items and reservations are separated in both data models and API routes. This makes it possible to trace a user action to its stored data in the source code."
],
"nodes": [
"Browser",
"Express API",
"MongoDB"
],
"evidence": [
{
"label": [
"Requirements & voorbereiding",
"Requirements & preparation"
],
"path": "projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen/Documentatie/documenten",
"directory": true,
"type": "DOCX",
"codes": [
"B1-K1-W1",
"B1-K1-W2"
]
},
{
"label": [
"Interactief concept",
"Interactive concept"
],
"path": "projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen/concept",
"directory": true,
"type": "HTML",
"codes": [
"B1-K1-W2"
]
},
{
"label": [
"Server & API-routes",
"Server & API routes"
],
"path": "projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken/server.js",
"type": "JS",
"codes": [
"B1-K1-W3"
]
},
{
"label": [
"Artikelen en reserveringen",
"Items and reservations"
],
"path": "projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken/models",
"directory": true,
"type": "JS",
"codes": [
"B1-K1-W3"
]
}
]
},
{
id: 'narrowcasting', number: '02', challenge: '18', kind: ['Ged istribueerd systeem'.replace('Ged is', 'Gedis'), 'Distributed system'],
title: ['Eén bron. Meerdere schermen.', 'One source. Multiple screens.'], name: ['SnowWorld narrowcasting', 'SnowWorld narrowcasting'],
intro: ['Een narrowcastingproject voor content op verschillende schermen. Een beheeromgeving, een backend en een schermclient hebben ieder een eigen rol.', 'A narrowcasting project for content across multiple displays. An administration interface, backend, and display client each have a separate role.'],
stack: ['JavaScript', 'Node.js', 'WebSocket', 'SQLite'], codes: ['B1-K1-W2', 'B1-K1-W3', 'B1-K1-W4'], path: screens,
context: ['Een schoolchallenge rond schermcontent voor SnowWorld. De README beschrijft zonegebonden content en planning. Dit portfolio toont het schoolproject; ingebruikname bij het bedrijf is niet bevestigd.', 'A school challenge around display content for SnowWorld. The README describes zone-specific content and scheduling. This portfolio presents the school project; use by the company has not been confirmed.'],
implementation: ['De repository verdeelt het systeem in backend, admin en client. De documentatie beschrijft WebSocket-updates en SQLite-opslag. Er zijn scripts voor systeem- en robuustheidstests aanwezig.', 'The repository separates backend, admin, and client. Its documentation describes WebSocket updates and SQLite storage. System and robustness test scripts are present.'],
decisions: ['De aparte schermclient maakt het verschil tussen content beheren en content afspelen zichtbaar. De systeemindeling is terug te vinden in de mappenstructuur en de projectdocumentatie.', 'A separate display client makes the distinction between managing content and playing content explicit. The folder structure and project documentation reflect this separation.'],
nodes: ['Admin', 'Backend', 'Display clients'],
evidence: [
{ label: ['Architectuur & projectbeschrijving', 'Architecture & project description'], path: `${screens}/README.md`, type: 'MD', codes: ['B1-K1-W2'] },
{ label: ['Implementatie', 'Implementation'], path: screens, directory: true, type: 'JS', codes: ['B1-K1-W3'] },
{ label: ['Systeemtestscript', 'System test script'], path: `${screens}/test_system.js`, type: 'JS', codes: ['B1-K1-W4'] },
{ label: ['Robuustheidstestscript', 'Robustness test script'], path: `${screens}/test_robust.js`, type: 'JS', codes: ['B1-K1-W4'] },
"id": "narrowcasting",
"number": "02",
"challenge": "18",
"kind": [
"Gedistribueerd systeem",
"Distributed system"
],
"title": [
"Eén bron. Meerdere schermen.",
"One source. Multiple screens."
],
"name": [
"SnowWorld narrowcasting",
"SnowWorld narrowcasting"
],
"intro": [
"Een narrowcastingproject voor content op verschillende schermen. Een beheeromgeving, een backend en een schermclient hebben ieder een eigen rol.",
"A narrowcasting project for content across multiple displays. An administration interface, backend, and display client each have a separate role."
],
"stack": [
"JavaScript",
"Node.js",
"WebSocket",
"SQLite"
],
"codes": [
"B1-K1-W2",
"B1-K1-W3",
"B1-K1-W4"
],
"path": "projects/year_02/challenge_18/narrow_casting_system",
"context": [
"Een schoolchallenge rond schermcontent voor SnowWorld. De README beschrijft zonegebonden content en planning. Dit portfolio toont het schoolproject; ingebruikname bij het bedrijf is niet bevestigd.",
"A school challenge around display content for SnowWorld. The README describes zone-specific content and scheduling. This portfolio presents the school project; use by the company has not been confirmed."
],
"implementation": [
"De repository verdeelt het systeem in backend, admin en client. De documentatie beschrijft WebSocket-updates en SQLite-opslag. Er zijn scripts voor systeem- en robuustheidstests aanwezig.",
"The repository separates backend, admin, and client. Its documentation describes WebSocket updates and SQLite storage. System and robustness test scripts are present."
],
"decisions": [
"De aparte schermclient maakt het verschil tussen content beheren en content afspelen zichtbaar. De systeemindeling is terug te vinden in de mappenstructuur en de projectdocumentatie.",
"A separate display client makes the distinction between managing content and playing content explicit. The folder structure and project documentation reflect this separation."
],
"nodes": [
"Admin",
"Backend",
"Display clients"
],
"evidence": [
{
"label": [
"Architectuur & projectbeschrijving",
"Architecture & project description"
],
"path": "projects/year_02/challenge_18/narrow_casting_system/README.md",
"type": "MD",
"codes": [
"B1-K1-W2"
]
},
{
"label": [
"Implementatie",
"Implementation"
],
"path": "projects/year_02/challenge_18/narrow_casting_system",
"directory": true,
"type": "JS",
"codes": [
"B1-K1-W3"
]
},
{
"label": [
"Systeemtestscript",
"System test script"
],
"path": "projects/year_02/challenge_18/narrow_casting_system/test_system.js",
"type": "JS",
"codes": [
"B1-K1-W4"
]
},
{
"label": [
"Robuustheidstestscript",
"Robustness test script"
],
"path": "projects/year_02/challenge_18/narrow_casting_system/test_robust.js",
"type": "JS",
"codes": [
"B1-K1-W4"
]
}
]
},
{
id: 'refactoring', number: '03', challenge: '13', kind: ['Onderhoud & kwaliteit', 'Maintenance & quality'],
title: ['Bestaande code, opnieuw bekeken.', 'Existing code, reconsidered.'], name: ['Messy Coder', 'Messy Coder'],
intro: ['Een bestaande PHP-portfoliosite als vertrekpunt voor refactoring. Met broncode, een opinieverslag en een testdocument in dezelfde projectmap.', 'An existing PHP portfolio as a starting point for refactoring. With source code, a review document, and a test document in the same project folder.'],
stack: ['PHP', 'CSS', 'JavaScript', 'SQL'], codes: ['B1-K1-W3', 'B1-K1-W4', 'B1-K1-W5'], path: refactor,
context: ['Challenge 13 richt zich op het analyseren en verbeteren van een bestaande codebase. De naam Lorenzo von Matterhorn hoort bij het aangeleverde oefenportfolio, niet bij mij.', 'Challenge 13 focuses on analysing and improving an existing codebase. Lorenzo von Matterhorn is the name in the exercise portfolio, not my identity.'],
implementation: ['De projectmap bevat PHP-pagina’s, een databasebestand, CSS en JavaScript. De begeleidende documenten bieden aanknopingspunten om de analyse en testaanpak naast de code te beoordelen.', 'The project folder contains PHP pages, a database file, CSS, and JavaScript. Its accompanying documents provide starting points for reviewing the analysis and testing approach alongside the code.'],
decisions: ['Bij dit project is het verschil tussen de uitgangssituatie en de verbeterde versie belangrijk. Concrete voor-en-na-voorbeelden en een onderbouwde persoonlijke reflectie moeten nog worden toegevoegd.', 'For this project, the difference between the starting point and the improved version matters. Specific before-and-after examples and a substantiated personal reflection still need to be added.'],
nodes: ['Review', 'Refactor', 'Test'],
evidence: [
{ label: ['Opdrachtcontext', 'Assignment context'], path: 'projects/year_02/challenge_13/README.md', type: 'MD', codes: ['B1-K1-W5'] },
{ label: ['PHP-implementatie', 'PHP implementation'], path: refactor, directory: true, type: 'PHP', codes: ['B1-K1-W3'] },
{ label: ['Testdocument', 'Test document'], path: `${refactor}/documents/Testrapport Portfoliowebsite (1).docx`, type: 'DOCX', codes: ['B1-K1-W4'] },
{ label: ['Opinieverslag', 'Review document'], path: `${refactor}/documents/Opinieverslag portfolio Lorenzo von Matterhorn.docx`, type: 'DOCX', codes: ['B1-K1-W5'] },
"id": "refactoring",
"number": "03",
"challenge": "13",
"kind": [
"Onderhoud & kwaliteit",
"Maintenance & quality"
],
},
"title": [
"Bestaande code, opnieuw bekeken.",
"Existing code, reconsidered."
],
"name": [
"Messy Coder",
"Messy Coder"
],
"intro": [
"Een bestaande PHP-portfoliosite als vertrekpunt voor refactoring. Met broncode, een opinieverslag en een testdocument in dezelfde projectmap.",
"An existing PHP portfolio as a starting point for refactoring. With source code, a review document, and a test document in the same project folder."
],
"stack": [
"PHP",
"CSS",
"JavaScript",
"SQL"
],
"codes": [
"B1-K1-W3",
"B1-K1-W4",
"B1-K1-W5"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd",
"context": [
"Challenge 13 richt zich op het analyseren en verbeteren van een bestaande codebase. De naam Lorenzo von Matterhorn hoort bij het aangeleverde oefenportfolio, niet bij mij.",
"Challenge 13 focuses on analysing and improving an existing codebase. Lorenzo von Matterhorn is the name in the exercise portfolio, not my identity."
],
"implementation": [
"De projectmap bevat PHP-pagina’s, een databasebestand, CSS en JavaScript. De begeleidende documenten bieden aanknopingspunten om de analyse en testaanpak naast de code te beoordelen.",
"The project folder contains PHP pages, a database file, CSS, and JavaScript. Its accompanying documents provide starting points for reviewing the analysis and testing approach alongside the code."
],
"decisions": [
"Bij dit project is het verschil tussen de uitgangssituatie en de verbeterde versie belangrijk. Concrete voor-en-na-voorbeelden en een onderbouwde persoonlijke reflectie moeten nog worden toegevoegd.",
"For this project, the difference between the starting point and the improved version matters. Specific before-and-after examples and a substantiated personal reflection still need to be added."
],
"nodes": [
"Review",
"Refactor",
"Test"
],
"evidence": [
{
"label": [
"Opdrachtcontext",
"Assignment context"
],
"path": "projects/year_02/challenge_13/README.md",
"type": "MD",
"codes": [
"B1-K1-W5"
]
},
{
"label": [
"PHP-implementatie",
"PHP implementation"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd",
"directory": true,
"type": "PHP",
"codes": [
"B1-K1-W3"
]
},
{
"label": [
"Testdocument",
"Test document"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd/documents/Testrapport Portfoliowebsite (1).docx",
"type": "DOCX",
"codes": [
"B1-K1-W4"
]
},
{
"label": [
"Opinieverslag",
"Review document"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd/documents/Opinieverslag portfolio Lorenzo von Matterhorn.docx",
"type": "DOCX",
"codes": [
"B1-K1-W5"
]
}
]
}
];
// These are navigation labels, not a replacement for the official assessment rubric.
export const processes = [
['B1-K1-W1', ['Afstemmen & plannen', 'Scope & planning'], ['Opdracht, afspraken, planning en voortgang aantonen.', 'Show the assignment, agreements, planning, and progress.']],
['B1-K1-W2', ['Technisch ontwerpen', 'Technical design'], ['Ontwerpkeuzes verbinden aan requirements.', 'Connect design decisions to requirements.']],
['B1-K1-W3', ['Software realiseren', 'Software implementation'], ['Eigen bijdrage onderbouwen met concrete code.', 'Substantiate your contribution with specific code.']],
['B1-K1-W4', ['Software testen', 'Software testing'], ['Testaanpak, uitvoering en resultaten vastleggen.', 'Document the test approach, execution, and results.']],
['B1-K1-W5', ['Verbeteringen voorstellen', 'Proposing improvements'], ['Bevindingen vertalen naar onderbouwde verbeteringen.', 'Turn findings into substantiated improvements.']],
['B1-K2-W1', ['Samenwerken', 'Teamwork'], ['Rolverdeling, afstemming en eigen bijdrage vastleggen.', 'Document roles, coordination, and your contribution.']],
['B1-K2-W2', ['Werk presenteren', 'Presenting work'], ['Presentatie en ontvangen feedback toevoegen.', 'Add a presentation and the feedback received.']],
['B1-K2-W3', ['Samenwerking evalueren', 'Evaluating collaboration'], ['Reflecteren op samenwerking en vervolgstappen.', 'Reflect on collaboration and next steps.']],
].map(([code, title, description]) => ({ code, title, description }));
export const source = (path, directory = false) => `${profile.school}/${directory ? "tree" : "blob"}/${revision}/${path.split("/").map(encodeURIComponent).join("/")}`;
+97
View File
@@ -0,0 +1,97 @@
{
"id": "narrowcasting",
"number": "02",
"challenge": "18",
"kind": [
"Gedistribueerd systeem",
"Distributed system"
],
"title": [
"Eén bron. Meerdere schermen.",
"One source. Multiple screens."
],
"name": [
"SnowWorld narrowcasting",
"SnowWorld narrowcasting"
],
"intro": [
"Een narrowcastingproject voor content op verschillende schermen. Een beheeromgeving, een backend en een schermclient hebben ieder een eigen rol.",
"A narrowcasting project for content across multiple displays. An administration interface, backend, and display client each have a separate role."
],
"stack": [
"JavaScript",
"Node.js",
"WebSocket",
"SQLite"
],
"codes": [
"B1-K1-W2",
"B1-K1-W3",
"B1-K1-W4"
],
"path": "projects/year_02/challenge_18/narrow_casting_system",
"context": [
"Een schoolchallenge rond schermcontent voor SnowWorld. De README beschrijft zonegebonden content en planning. Dit portfolio toont het schoolproject; ingebruikname bij het bedrijf is niet bevestigd.",
"A school challenge around display content for SnowWorld. The README describes zone-specific content and scheduling. This portfolio presents the school project; use by the company has not been confirmed."
],
"implementation": [
"De repository verdeelt het systeem in backend, admin en client. De documentatie beschrijft WebSocket-updates en SQLite-opslag. Er zijn scripts voor systeem- en robuustheidstests aanwezig.",
"The repository separates backend, admin, and client. Its documentation describes WebSocket updates and SQLite storage. System and robustness test scripts are present."
],
"decisions": [
"De aparte schermclient maakt het verschil tussen content beheren en content afspelen zichtbaar. De systeemindeling is terug te vinden in de mappenstructuur en de projectdocumentatie.",
"A separate display client makes the distinction between managing content and playing content explicit. The folder structure and project documentation reflect this separation."
],
"nodes": [
"Admin",
"Backend",
"Display clients"
],
"evidence": [
{
"label": [
"Architectuur & projectbeschrijving",
"Architecture & project description"
],
"path": "projects/year_02/challenge_18/narrow_casting_system/README.md",
"type": "MD",
"codes": [
"B1-K1-W2"
]
},
{
"label": [
"Implementatie",
"Implementation"
],
"path": "projects/year_02/challenge_18/narrow_casting_system",
"directory": true,
"type": "JS",
"codes": [
"B1-K1-W3"
]
},
{
"label": [
"Systeemtestscript",
"System test script"
],
"path": "projects/year_02/challenge_18/narrow_casting_system/test_system.js",
"type": "JS",
"codes": [
"B1-K1-W4"
]
},
{
"label": [
"Robuustheidstestscript",
"Robustness test script"
],
"path": "projects/year_02/challenge_18/narrow_casting_system/test_robust.js",
"type": "JS",
"codes": [
"B1-K1-W4"
]
}
]
}
+97
View File
@@ -0,0 +1,97 @@
{
"id": "refactoring",
"number": "03",
"challenge": "13",
"kind": [
"Onderhoud & kwaliteit",
"Maintenance & quality"
],
"title": [
"Bestaande code, opnieuw bekeken.",
"Existing code, reconsidered."
],
"name": [
"Messy Coder",
"Messy Coder"
],
"intro": [
"Een bestaande PHP-portfoliosite als vertrekpunt voor refactoring. Met broncode, een opinieverslag en een testdocument in dezelfde projectmap.",
"An existing PHP portfolio as a starting point for refactoring. With source code, a review document, and a test document in the same project folder."
],
"stack": [
"PHP",
"CSS",
"JavaScript",
"SQL"
],
"codes": [
"B1-K1-W3",
"B1-K1-W4",
"B1-K1-W5"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd",
"context": [
"Challenge 13 richt zich op het analyseren en verbeteren van een bestaande codebase. De naam Lorenzo von Matterhorn hoort bij het aangeleverde oefenportfolio, niet bij mij.",
"Challenge 13 focuses on analysing and improving an existing codebase. Lorenzo von Matterhorn is the name in the exercise portfolio, not my identity."
],
"implementation": [
"De projectmap bevat PHP-pagina’s, een databasebestand, CSS en JavaScript. De begeleidende documenten bieden aanknopingspunten om de analyse en testaanpak naast de code te beoordelen.",
"The project folder contains PHP pages, a database file, CSS, and JavaScript. Its accompanying documents provide starting points for reviewing the analysis and testing approach alongside the code."
],
"decisions": [
"Bij dit project is het verschil tussen de uitgangssituatie en de verbeterde versie belangrijk. Concrete voor-en-na-voorbeelden en een onderbouwde persoonlijke reflectie moeten nog worden toegevoegd.",
"For this project, the difference between the starting point and the improved version matters. Specific before-and-after examples and a substantiated personal reflection still need to be added."
],
"nodes": [
"Review",
"Refactor",
"Test"
],
"evidence": [
{
"label": [
"Opdrachtcontext",
"Assignment context"
],
"path": "projects/year_02/challenge_13/README.md",
"type": "MD",
"codes": [
"B1-K1-W5"
]
},
{
"label": [
"PHP-implementatie",
"PHP implementation"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd",
"directory": true,
"type": "PHP",
"codes": [
"B1-K1-W3"
]
},
{
"label": [
"Testdocument",
"Test document"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd/documents/Testrapport Portfoliowebsite (1).docx",
"type": "DOCX",
"codes": [
"B1-K1-W4"
]
},
{
"label": [
"Opinieverslag",
"Review document"
],
"path": "projects/year_02/challenge_13/Messy-coder-Verbeterd/documents/Opinieverslag portfolio Lorenzo von Matterhorn.docx",
"type": "DOCX",
"codes": [
"B1-K1-W5"
]
}
]
}
+100
View File
@@ -0,0 +1,100 @@
{
"id": "warehouse",
"number": "01",
"challenge": "14 + 15",
"kind": [
"Webapplicatie",
"Web application"
],
"title": [
"Van aanvraag tot uitgifte.",
"From request to checkout."
],
"name": [
"Magazijnbeheer",
"Warehouse management"
],
"intro": [
"Een schoolmagazijn met artikelen, reserveringen en aparte schermen voor studenten en beheerders. Van de eerste requirements naar een applicatie met een database.",
"A school warehouse with items, reservations, and separate interfaces for students and administrators. From initial requirements to a database-backed application."
],
"stack": [
"JavaScript",
"Node.js",
"Express",
"MongoDB"
],
"codes": [
"B1-K1-W1",
"B1-K1-W2",
"B1-K1-W3"
],
"path": "projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken",
"context": [
"Challenges 14 en 15 vormen samen een traject van voorbereiding naar realisatie. De schoolrepository bevat klantgesprekken, requirements, een concept en de applicatie.",
"Challenges 14 and 15 connect preparation with implementation. The school repository contains client interviews, requirements, a concept, and the application."
],
"implementation": [
"De Express-server koppelt routes voor accounts, artikelen, reserveringen en uploads aan MongoDB via Mongoose. De frontend bevat afzonderlijke pagina’s voor student- en beheertaken.",
"The Express server connects account, item, reservation, and upload routes to MongoDB through Mongoose. The frontend has separate pages for student and administrator tasks."
],
"decisions": [
"De scheiding tussen artikelen en reserveringen is zichtbaar in zowel de datamodellen als de API-routes. Daarmee is de relatie tussen de gebruikershandeling en de opgeslagen gegevens te volgen in de broncode.",
"Items and reservations are separated in both data models and API routes. This makes it possible to trace a user action to its stored data in the source code."
],
"nodes": [
"Browser",
"Express API",
"MongoDB"
],
"evidence": [
{
"label": [
"Requirements & voorbereiding",
"Requirements & preparation"
],
"path": "projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen/Documentatie/documenten",
"directory": true,
"type": "DOCX",
"codes": [
"B1-K1-W1",
"B1-K1-W2"
]
},
{
"label": [
"Interactief concept",
"Interactive concept"
],
"path": "projects/year_02/challenge_14/Challenge_14_Magazijn_App_plannen/concept",
"directory": true,
"type": "HTML",
"codes": [
"B1-K1-W2"
]
},
{
"label": [
"Server & API-routes",
"Server & API routes"
],
"path": "projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken/server.js",
"type": "JS",
"codes": [
"B1-K1-W3"
]
},
{
"label": [
"Artikelen en reserveringen",
"Items and reservations"
],
"path": "projects/year_02/challenge_15/Challenge_15_Magazijn_App_Maken/models",
"directory": true,
"type": "JS",
"codes": [
"B1-K1-W3"
]
}
]
}
+101
View File
@@ -0,0 +1,101 @@
{
"profile": {
"name": "Alvin Zilverstand",
"github": "https://github.com/Alvin-Zilverstand",
"gitea": "https://codealvin.xyz/Alvin-Zilverstand",
"school": "https://github.com/Alvin-Zilverstand/school",
"qualification": "https://kwalificatie-mijn.s-bb.nl/Details/DownloadDocument/1963420",
"reviewed": "2026-11-09"
},
"revision": "d420c317abcbd117e0e1dd641674ab3283ab34ba",
"processes": [
{
"code": "B1-K1-W1",
"title": [
"Afstemmen & plannen",
"Scope & planning"
],
"description": [
"Opdracht, afspraken, planning en voortgang aantonen.",
"Show the assignment, agreements, planning, and progress."
]
},
{
"code": "B1-K1-W2",
"title": [
"Technisch ontwerpen",
"Technical design"
],
"description": [
"Ontwerpkeuzes verbinden aan requirements.",
"Connect design decisions to requirements."
]
},
{
"code": "B1-K1-W3",
"title": [
"Software realiseren",
"Software implementation"
],
"description": [
"Eigen bijdrage onderbouwen met concrete code.",
"Substantiate your contribution with specific code."
]
},
{
"code": "B1-K1-W4",
"title": [
"Software testen",
"Software testing"
],
"description": [
"Testaanpak, uitvoering en resultaten vastleggen.",
"Document the test approach, execution, and results."
]
},
{
"code": "B1-K1-W5",
"title": [
"Verbeteringen voorstellen",
"Proposing improvements"
],
"description": [
"Bevindingen vertalen naar onderbouwde verbeteringen.",
"Turn findings into substantiated improvements."
]
},
{
"code": "B1-K2-W1",
"title": [
"Samenwerken",
"Teamwork"
],
"description": [
"Rolverdeling, afstemming en eigen bijdrage vastleggen.",
"Document roles, coordination, and your contribution."
]
},
{
"code": "B1-K2-W2",
"title": [
"Werk presenteren",
"Presenting work"
],
"description": [
"Presentatie en ontvangen feedback toevoegen.",
"Add a presentation and the feedback received."
]
},
{
"code": "B1-K2-W3",
"title": [
"Samenwerking evalueren",
"Evaluating collaboration"
],
"description": [
"Reflecteren op samenwerking en vervolgstappen.",
"Reflect on collaboration and next steps."
]
}
]
}
+43
View File
@@ -0,0 +1,43 @@
worker_processes auto;
pid /tmp/nginx.pid;
error_log /dev/stderr warn;
events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /dev/stdout;
server_tokens off;
sendfile on;
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
add_header X-Frame-Options DENY always;
add_header Cache-Control "no-cache" always;
location = /healthz {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
# Explicit public-file list: source files and the stock Nginx page are not served.
location = / { try_files /index.html =404; }
location ~ ^/(index\.html|app\.js|content\.js|styles\.css|favicon\.svg)$ {
limit_except GET { deny all; }
try_files $uri =404;
}
location / { return 404; }
}
}
+34
View File
@@ -0,0 +1,34 @@
# Codebase index
Indexed 9 November 2026, before the content workflow changes. This is a vanilla JavaScript static portfolio with hash routing, Dutch/English text, and no runtime dependencies.
| File | Responsibility |
| --- | --- |
| `content/projects/*.json` | Editable projects, each with its evidence items; display order uses `number` |
| `content/settings.json` | Profile links, pinned source revision, eight process definitions |
| `content.js` | Generated browser module; do not edit directly |
| `app.js` | DOM rendering, translations, navigation, evidence filtering and printing |
| `styles.css` | Desktop/mobile layouts, project diagrams, accessibility and print styles |
| `index.html`, `favicon.svg` | Document shell, metadata and icon |
| `scripts/content.mjs` | Validate content, generate module, scaffold a project |
| `scripts/serve.mjs` | Loopback-only static preview; compiles content when requested |
| `scripts/build.mjs` | Validate/generate content, copy five public assets to `dist/` |
| `tests/` | Content integrity and editing regression checks |
| `Dockerfile`, `.dockerignore` | Build and test source in Node, then serve public assets with Nginx; see compose.yaml, docker/nginx.conf and docs/docker-hosting.md |
| `docs/verification.md` | Earlier verification record, not a current test report |
## Rendering and dependencies
`content/ → scripts/content.mjs → content.js → app.js → main`
Routes: `#home`, `#work`, `#project/<id>`, `#evidence`, `#evidence/<code>`, `#about`. Unknown routes show a 404. Language is selected using `?lang=nl` or `?lang=en`.
`header` and `footer` render shared navigation. `home` and `work` render project lists; `detail` renders a dossier. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries.
At initial indexing there were three projects and twelve evidence entries in a single handwritten `content.js`. The homepage assumed at least one project, linked directly to `warehouse`, and displayed a fixed count. These assumptions were removed for content management. The first project by number is now featured; an empty portfolio is supported.
Project IDs are stable route identifiers. Evidence paths are relative to `profile.school` at the pinned `revision`. Text pairs are `[Dutch, English]`. The existing design uses exactly three diagram nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`.
## Exposure boundary
Editing happens in local JSON files. The preview server has no write endpoint and binds to `127.0.0.1`. Production ships five static files, with no editor, login, database, or server process. All content included in a build is public: only put publishable material in these files. Publish `dist/`, not the repository root.
+77
View File
@@ -0,0 +1,77 @@
# Proxmox Docker hosting
Use a Linux guest with Docker Engine and the Docker Compose plugin installed. Copy this repository to the guest, or clone it after committing and pushing your changes. From the repository directory:
```sh
cp .env.example .env
# Edit .env: set BIND_ADDRESS to the portfolio guest's LAN IP.
docker compose up -d --build
docker compose ps
# Replace the example IP with the portfolio guest's LAN IP:
curl -f http://192.168.1.50:8080/healthz
```
Docker validates content, runs tests and builds inside a Node build stage. Only static assets enter the Nginx runtime image. No Node installation, database or persistent volume is required on the guest. Configure the guest and Docker to start on boot; the service uses `restart: unless-stopped`.
## Network access
The default binding is `127.0.0.1:8080`, accessible only on the Docker guest. A reverse proxy running directly on that guest can forward to it.
For access from your laptop or a reverse proxy on another machine, edit `.env` to use the guest's actual LAN IP:
```dotenv
BIND_ADDRESS=192.168.1.50
PORTFOLIO_PORT=8080
```
Run `docker compose up -d` again, then open `http://192.168.1.50:8080` using your actual IP. Restrict port 8080 at the network/Proxmox firewall to the intended LAN or reverse proxy. Change `PORTFOLIO_PORT` if the port is already occupied.
## Separate Nginx Proxy Manager box
Your topology is: Internet → Nginx Proxy Manager (HTTPS) → portfolio guest LAN IP:8080 (HTTP). The portfolio container needs no certificate or domain configuration.
In Nginx Proxy Manager, add a **Proxy Host** with these settings:
| Setting | Value |
| --- | --- |
| Domain Names | Your portfolio domain, such as `portfolio.example.com` |
| Scheme | `http` |
| Forward Hostname / IP | The portfolio guest's LAN IP, such as `192.168.1.50` |
| Forward Port | `8080`, or your chosen `PORTFOLIO_PORT` |
| Access List | Publicly Accessible, for a public portfolio |
| Cache Assets | Off, so content edits revalidate immediately |
| Websockets Support | Off; this static site does not use WebSockets |
| SSL Certificate | Select an existing matching certificate or request one |
| Force SSL | On after the certificate is configured |
Leave Advanced configuration and Custom Locations empty. Serve the portfolio at the domain root. Hash routes, project links and both languages work without rewrite rules. Nginx Proxy Manager is designed to act as the gateway and manage SSL; see its [official guide](https://nginxproxymanager.com/guide/).
Use the portfolio guest's LAN address as the upstream, not `localhost`, the proxy box's IP or the Docker service name. Separate machines do not share the local Docker bridge network.
Point your domain DNS at the public address used by Nginx Proxy Manager. Your router's public ports 80/443 should reach the proxy box. Do not forward public port 8080 to the portfolio guest. At the Proxmox/network firewall, allow inbound TCP 8080 to the portfolio guest from the proxy box's LAN IP and deny other sources. Binding to a LAN IP alone does not impose this source restriction. These firewall/DNS settings must be applied in your infrastructure; this repository does not configure them.
From the proxy box, verify `curl -f http://192.168.1.50:8080/healthz` returns `ok` (substitute your IP). Then open the public HTTPS domain and test a project and language switch. If Nginx Proxy Manager returns 502, check the upstream IP, HTTP scheme, port, container status and firewall access from the proxy box.
## Updates
Edit the JSON source files locally, then sync the changed files to the guest, including removing deleted project files. With Git, commit/push locally and pull on the guest. Apply updates with:
```sh
docker compose up -d --build
```
Restarting alone does not import edited content; the files are baked into the image. Keep and back up the source checkout. Do not edit inside the container. To refresh base images, run `docker compose build --pull`, then `docker compose up -d`.
## Operations and exposure
```sh
docker compose logs --tail=100 portfolio
docker compose ps
docker compose down
```
The container runs as the Nginx user with a read-only filesystem, dropped Linux capabilities and temporary memory-backed storage. The server exposes only the public website assets and `/healthz`; there is no admin or editing endpoint. Everything in the built content remains public. The development server is not used for hosting.
The health check expects `/healthz` to return `ok`. The restart policy handles process exits; an unhealthy status alone does not restart the container. Compose settings follow the [Docker service reference](https://docs.docker.com/reference/compose-file/services/).
Local content tests, static build and Compose configuration validation passed. The container could not be built or run locally because the Docker engine was unavailable. Nothing has been deployed to Proxmox.
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

+16
View File
@@ -0,0 +1,16 @@
# Verification — 9 November 2026
- `node --check app.js` passed.
- `npm test`: both content integrity checks passed.
- `npm run build` passed; static output is in `dist/`.
- Local HTTP server returned 200.
- All 15 referenced project/artifact paths exist in the inspected school repository snapshot.
- Browser verified Dutch/English switching and preservation of the selected project.
- Evidence filter opened the software-testing process and displayed its three source links.
- Project navigation and keyboard skip link worked; skip retained the current route and focused the main region.
- All seven main routes were checked at 320px in both languages without document-width overflow.
- Homepage and project page inspected visually at mobile widths; homepage also inspected at 1440px. The English hero overflow found during inspection was fixed.
- No browser console errors were observed in the checked session.
- Preview saved in `docs/preview.png`.
Limits: print/PDF layout has a dedicated stylesheet but was not rendered to a PDF in this pass. Docker deployment was not run. Linked DOCX contents were not reviewed. Source project tests were not executed. These checks validate the portfolio implementation, not the completeness or acceptance of exam evidence.
+3 -1
View File
@@ -5,7 +5,9 @@
"scripts": {
"dev": "node scripts/serve.mjs",
"build": "node scripts/build.mjs",
"test": "node --test tests/*.test.mjs"
"test": "node scripts/content.mjs && node --test tests/*.test.mjs",
"content": "node scripts/content.mjs",
"project:add": "node scripts/content.mjs add"
},
"engines": { "node": ">=22" }
}
+3
View File
@@ -1,4 +1,7 @@
import { mkdir, copyFile } from 'node:fs/promises';
import { writeFile } from 'node:fs/promises';
import { compileContent } from './content.mjs';
await writeFile(new URL('../content.js', import.meta.url), await compileContent());
await mkdir('dist', { recursive: true });
for (const file of ['index.html', 'styles.css', 'app.js', 'content.js', 'favicon.svg']) {
await copyFile(file, `dist/${file}`);
+53
View File
@@ -0,0 +1,53 @@
import { readdir, readFile, writeFile } from 'node:fs/promises';
import { pathToFileURL } from 'node:url';
const root = new URL('../', import.meta.url);
const readJSON = async path => JSON.parse(await readFile(new URL(path, root), 'utf8'));
const pairs = ['kind', 'title', 'name', 'intro', 'context', 'implementation', 'decisions'];
export function validateProjects(projects, processes) {
const ids = new Set();
const codes = new Set(processes.map(p => p.code));
const require = (ok, message) => { if (!ok) throw new Error(message); };
const pair = value => Array.isArray(value) && value.length === 2 && value.every(v => typeof v === 'string' && v.trim());
const path = value => typeof value === 'string' && value.length > 0 && !value.startsWith('/') && !value.split('/').some(p => p === '..' || p === '.');
const mapping = value => Array.isArray(value) && value.every(c => codes.has(c));
for (const p of projects) {
require(/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(p.id) && !ids.has(p.id), `Invalid or duplicate project ID: ${p.id}`);
ids.add(p.id);
for (const key of pairs) require(pair(p[key]), `${p.id}.${key}: provide Dutch and English text`);
for (const key of ['number', 'challenge']) require(typeof p[key] === 'string' && p[key].trim(), `${p.id}.${key}: required text`);
for (const key of ['stack', 'nodes']) require(Array.isArray(p[key]) && p[key].length > 0 && p[key].every(v => typeof v === 'string' && v.trim()), `${p.id}.${key}: provide text entries`);
require(p.nodes.length === 3, `${p.id}.nodes: provide three diagram labels`);
require(path(p.path), `${p.id}.path: provide a repository-relative path`);
require(mapping(p.codes), `${p.id}.codes: unknown process code`);
require(Array.isArray(p.evidence), `${p.id}.evidence: expected an array`);
for (const e of p.evidence) {
require(pair(e.label) && path(e.path) && typeof e.type === 'string' && e.type.trim() && mapping(e.codes) && (e.directory === undefined || typeof e.directory === 'boolean'), `${p.id}: invalid evidence item`);
}
}
}
export async function compileContent() {
const settings = await readJSON('content/settings.json');
const files = (await readdir(new URL('content/projects/', root))).filter(f => f.endsWith('.json')).sort();
const projects = await Promise.all(files.map(f => readJSON(`content/projects/${f}`)));
projects.sort((a, b) => a.number.localeCompare(b.number, undefined, { numeric: true }));
validateProjects(projects, settings.processes);
return '// Generated from content/ by npm run content. Edit the JSON source files.\n' +
Object.entries({ ...settings, projects }).map(([key, value]) => `export const ${key} = ${JSON.stringify(value, null, 2)};`).join('\n') +
'\nexport const source = (path, directory = false) => `${profile.school}/${directory ? "tree" : "blob"}/${revision}/${path.split("/").map(encodeURIComponent).join("/")}`;\n';
}
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
const [command, id] = process.argv.slice(2);
if (command === 'add') {
if (!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(id || '')) throw new Error('Usage: npm run project:add -- my-project');
const files = (await readdir(new URL('content/projects/', root))).filter(f => f.endsWith('.json'));
const existing = await Promise.all(files.map(f => readJSON(`content/projects/${f}`)));
const p = { id, number: String(Math.max(0, ...existing.map(p => Number(p.number) || 0)) + 1).padStart(2, '0'), challenge: '—' };
for (const key of pairs) p[key] = [key === 'name' ? id : 'Nog aanvullen', key === 'name' ? id : 'To be completed'];
Object.assign(p, { stack: ['To be completed'], codes: [], path: 'projects', nodes: ['Input', 'Application', 'Output'], evidence: [] });
await writeFile(new URL(`content/projects/${id}.json`, root), JSON.stringify(p, null, 2) + '\n', { flag: 'wx' });
console.log(`Created content/projects/${id}.json — replace the placeholder text before publishing.`);
}
await writeFile(new URL('content.js', root), await compileContent());
console.log('Validated and generated content.js');
}
+2 -1
View File
@@ -1,5 +1,6 @@
import { createServer } from 'node:http';
import { readFile } from 'node:fs/promises';
import { compileContent } from './content.mjs';
const port = Number(process.env.PORT || 4173);
const files = new Map([['/', 'index.html'], ['/index.html', 'index.html'], ['/styles.css', 'styles.css'], ['/app.js', 'app.js'], ['/content.js', 'content.js'], ['/favicon.svg', 'favicon.svg']]);
const mime = { html: 'text/html', css: 'text/css', js: 'text/javascript', svg: 'image/svg+xml' };
@@ -7,7 +8,7 @@ createServer(async (req, res) => {
const file = files.get(new URL(req.url, 'http://localhost').pathname);
if (!file) { res.writeHead(404); return res.end('Not found'); }
try {
const body = await readFile(new URL(`../${file}`, import.meta.url));
const body = file === 'content.js' ? await compileContent() : await readFile(new URL(`../${file}`, import.meta.url));
res.writeHead(200, { 'Content-Type': `${mime[file.split('.').pop()]}; charset=utf-8`, 'Cache-Control': 'no-cache', 'X-Content-Type-Options': 'nosniff' });
res.end(body);
} catch { res.writeHead(500); res.end('Unable to read file'); }
+1226 -3
View File
File diff suppressed because it is too large. Load diff
+28
View File
@@ -0,0 +1,28 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { projects, processes, source, revision } from '../content.js';
test('Evidence mappings use real process IDs and complete translations', () => {
assert.equal(processes.length, 8);
const ids = new Set(processes.map(p => p.code));
assert.equal(ids.size, 8);
assert.equal(new Set(projects.map(p => p.id)).size, projects.length);
for (const p of projects) {
for (const key of ['kind', 'title', 'name', 'intro', 'context', 'implementation', 'decisions']) {
assert.equal(p[key].length, 2, `${p.id}.${key}`);
assert.ok(p[key].every(s => typeof s === 'string' && s.length > 0));
}
for (const e of p.evidence) {
assert.ok(e.codes.every(c => ids.has(c)), e.path);
assert.ok(e.label.length === 2 && e.label.every(Boolean));
const url = new URL(source(e.path, e.directory));
assert.equal(url.hostname, 'github.com');
assert.ok(url.pathname.includes(revision));
assert.equal(decodeURIComponent(url.pathname.split(`${revision}/`)[1]), e.path);
}
}
});
test('Collaboration gaps remain explicit rather than claiming unsupported evidence', () => {
for (const code of ['B1-K2-W1', 'B1-K2-W2', 'B1-K2-W3']) {
assert.ok(!projects.some(p => p.evidence.some(e => e.codes.includes(code))));
}
});
+43
View File
@@ -0,0 +1,43 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { compileContent, validateProjects } from '../scripts/content.mjs';
import { projects, processes } from '../content.js';
import { profile, source } from '../content.js';
import { readFile } from 'node:fs/promises';
import { runInNewContext } from 'node:vm';
test('content compiler preserves source data', async () => {
const result = await import(`data:text/javascript;base64,${Buffer.from(await compileContent()).toString('base64')}`);
assert.deepEqual(result.projects, projects);
});
test('deleting all projects or evidence is supported', () => {
assert.doesNotThrow(() => validateProjects([], processes));
assert.doesNotThrow(() => validateProjects(projects.map(p => ({ ...p, evidence: [] })), processes));
});
test('invalid routes, translations and mappings are rejected', () => {
for (const change of [{ id: '../invalid' }, { name: ['Only one language'] }, { codes: ['unknown'] }, { nodes: [] }]) {
assert.throws(() => validateProjects([{ ...projects[0], ...change }], processes));
}
assert.throws(() => validateProjects([projects[0], projects[0]], processes));
});
test('homepage renders after removing the featured project or all projects', async () => {
const code = (await readFile(new URL('../app.js', import.meta.url), 'utf8')).replace(/^import .*;\r?\n/, '');
for (const remaining of [projects.slice(1), []]) {
const elements = new Map();
const document = {
documentElement: {},
querySelector(selector) {
if (!elements.has(selector)) elements.set(selector, { innerHTML: '', addEventListener() {} });
return elements.get(selector);
},
querySelectorAll() { return []; },
};
runInNewContext(code, { profile, source, projects: remaining, processes, document, URLSearchParams, location: { search: '?lang=en', hash: '#home' }, window: { addEventListener() {} } });
const html = elements.get('main').innerHTML;
assert.ok(!html.includes('undefined'));
assert.ok(!html.includes('href="#project/warehouse"'));
if (remaining.length) assert.ok(html.includes(`href="#project/${remaining[0].id}"`));
else assert.ok(html.includes('No projects added yet.'));
}
});