How github-samples/caldova-careers works
Caldova Careers is a small Astro careers site: applicants browse Markdown-backed roles, view a role and submit an unauthenticated application, which is validated and stored in the applications table. The graph includes the documented listing, detail, apply and confirmation stages, plus the content, helper and database layers. Page and component connections rely on README descriptions; the sampled endpoint and library excerpts provide the implementation evidence for application validation and persistence.
Main entry points: index.astro Role listing · [slug].astro Role detail · apply.ts Apply endpoint · applications.ts Application validation
Components 16
Careers pages
- Role listing
src/pages/index.astro - Role detail
src/pages/roles/[slug].astro - Apply form
src/components/ApplyForm.astro - Confirmation page
src/pages/thanks.astro - About page
src/pages/about.astro - Not found page
src/pages/404.astro - Shared UI
src/components
Role content
- Job postings
src/content/jobs - Content schema
src/content.config.ts - Job helpers
src/lib/jobs.ts - Job types
src/types/job.ts
Application flow
- Apply endpoint
src/pages/api/apply.ts - Application validation
src/lib/applications.ts
Data layer
- Database client
src/lib/db.ts - Applications table
db/schema.ts
Other components
- Job seeker
Connections 16
- Job seeker → Role listing: browses roles
README.md - Role listing → Job postings: lists postings
README.md - Role listing → Role detail: opens role
README.md - Role detail → Apply form: presents form
README.md - Apply form → Apply endpoint: submits application
README.md - Apply endpoint → Content schema: loads roles
src/pages/api/apply.ts - Apply endpoint → Application validation: validates and creates
src/pages/api/apply.ts - Application validation → Database client: accepts database
src/lib/applications.ts - Application validation → Applications table: inserts row
src/lib/applications.ts - Database client → Applications table: configures schema
src/lib/db.ts - Apply endpoint → Confirmation page: redirects on success
src/pages/api/apply.ts - Content schema → Job postings: loads and validates
src/content.config.ts - Job helpers → Job types: uses type
src/lib/jobs.ts - Role listing → Job helpers: sorts postings
- Role detail → Job postings: shows posting
- Role detail → Job helpers: formats dates