Skip to content
TadasBaPublic

About

Lithuanian clothing-repair service built with TypeScript and Cloudflare Pages Functions, including trusted pricing, order validation, Turnstile and email delivery.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Rethread

Custom website for Rethread, a Lithuanian mail-in clothing repair service.

Stack

  • Vite + TypeScript SPA
  • Hand-written DOM helpers and router
  • CSS variables with scoped component styles
  • Cloudflare Pages + Pages Functions
  • Resend order email endpoint

Commands

npm install
npx playwright install chromium # one-time browser setup for tests
npm run dev
npm test
npm run check
npm run pages:dev

Content

  • Main copy: src/i18n/strings.ts
  • Fixed service prices: shared/pricing-data.json
  • Legal/shipping pages: src/pages/legal.ts
  • Journal posts: src/content/journal/*.md
  • Order Function: functions/api/order.ts

Deployment

Cloudflare Pages builds dist with npm run build.

GitHub Actions requires these repository secrets:

CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_TOKEN
VITE_TURNSTILE_SITE_KEY

Cloudflare Pages environment variables:

RESEND_API_KEY
ORDER_TO_EMAIL
ORDER_FROM_EMAIL
TURNSTILE_SECRET_KEY

About

Lithuanian clothing-repair service built with TypeScript and Cloudflare Pages Functions, including trusted pricing, order validation, Turnstile and email delivery.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages