Skip to content
fedemeloPublic

About

Federico Melo Barrero's personal webpage, CV and resume

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Federico Melo Barrero's Portfolio

A monorepo containing Federico Melo Barrero's personal portfolio applications:

Architecture

This is a pnpm workspace with independent modules that share common data.

Workspace Description Tech stack
shared Common data, schemas and utils TS + Zod
api RESTful API backend Fastify + TS + Swagger
webpage Personal webpage Next.js + TS + Tailwind CSS

Development

Prerequisites are Node.js 20, pnpm, and Docker.

Install dependencies for all modules with pnpm install.

Each module can be developed, built, and deployed separately.

Module Develop Port Build
API pnpm dev:api 8003 pnpm build:api
Webpage pnpm dev:webpage 3001 pnpm build:webpage

Development via Docker is also supported, see Docker Deployment.

Resume and CV

The resume and CV are PDFs built by Typst (brew install typst) from the data in shared/data. shared/document/build.ts decides what each document contains and scripts/print-json.ts prints it to resume/resume.json and cv/cv.json, which the templates resume/resume.typ and cv/cv.typ lay out with the pieces in shared/typst/common.typ.

Command Effect
make resume, make cv Regenerate the JSON and compile the PDF
make watch-resume, make watch-cv Recompile the PDF on every template change
make plain-text-resume, make plain-text-cv Write the document as plain text, for pasting into forms
make check-documents Fail if a committed JSON no longer matches shared/data

Commit the JSON and PDF together after every rebuild. The check also runs in pnpm test. The webpage serves both PDFs through symlinks in webpage/public/documents.

Deployment

Cloudflare Pages

Each module deploys automatically on push to main to its own domain or subdomain via an independent Cloudflare Pages project. Cloudflare Pages doesn't support pnpm directly, so the build commands use npm instead. All modules use Node.js 20.

Module Domain / Subdomain Build Command Build Output Directory
Webpage fedemelo.com cd webpage && npm run build webpage/out

Docker Deployment

For VPS or containerized deployments, build all images and run all services with Docker Compose:

pnpm docker:dev

To only build (but not run) all images, run: pnpm docker:build.

Commands per service:

Service Build URL Build production image Run production image
Webpage pnpm docker:build:webpage http://localhost:3001/ docker build -f webpage/Dockerfile -t webpage-frontend . docker run -d -p 80:80 webpage-frontend
API pnpm docker:build:api http://localhost:8003/ docker build -f api/Dockerfile -t api-backend . docker run -d -p 8003:8003 api-backend

About

Federico Melo Barrero's personal webpage, CV and resume

Resources

Stars

1 star

Watchers

1 watching

Forks

Used by

Contributors

Languages