Skip to content
View fbcwimberley's full-sized avatar

Block or report fbcwimberley

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
fbcwimberley/README.md

WFBC POC

First Baptist Church Wimberley website rebuild with SvelteKit.

Install Brain First

For the best results when using AI tools to work in this repo, install Brain first. This project keeps shared repo context in Brain, and agents work better here when they can read and search that context instead of relying only on ad hoc prompts.

Install Brain

Unix shell:

curl -fsSL https://raw.githubusercontent.com/JimmyMcBride/brain/main/scripts/install.sh | sh

Windows PowerShell:

irm https://raw.githubusercontent.com/JimmyMcBride/brain/main/scripts/install.ps1 | iex

Install The Brain Skill Locally For This Project

From the repo root:

brain skills install --scope local --agent codex --agent claude --project .

Validate Brain In This Repo

brain doctor --project .
brain find --project . fbcwimberley
brain search --project . "fbcwimberley homepage events ministries"

What This Site Includes

  • Marketing-style church website with custom themed sections (home, about, connect, ministries, serve, watch)
  • Internal events page (/events) backed by the Planning Center Registrations API
  • Responsive header with dropdown navigation and mobile drawer
  • Light/dark theme toggle with persisted preference
  • Embedded livestream page (/watch)
  • Newsletter signup flow backed by Mailchimp (POST /api/newsletter)
  • Image localization/conversion scripts for remote assets

Tech Stack

  • SvelteKit 2 + Svelte 5 (TypeScript)
  • Vite 7
  • Tailwind CSS v4 (@tailwindcss/vite) plus custom global CSS variables
  • Adapter: @sveltejs/adapter-auto

Local Development

1) Install dependencies

bun install

2) Configure environment variables

Create .env.local from .env.example, then replace the placeholders with real values:

cp .env.example .env.local

The required variables are:

MAILCHIMP_API_KEY=your-key-usXX
MAILCHIMP_AUDIENCE_ID=your-audience-id
PLANNINGCENTER_CLIENT_ID=your-client-id
PLANNINGCENTER_PAT=your-personal-access-token
# Optional legacy fallback name used by the API route:
# MAILCHIMP_LIST_ID=your-audience-id

Mailchimp setup

The newsletter endpoint needs one Mailchimp Marketing API key and the ID of the audience that should receive website signups.

  1. In Mailchimp, open Audience, select the audience, choose More options → Audience settings, and copy Audience ID.
  2. Open your profile, choose Profile → Extras → API keys, select Create A Key, and copy the new key immediately. The key includes a data-center suffix such as -us21; the endpoint uses that suffix to select the Mailchimp API region.
  3. In the Vercel project, open Settings → Environment Variables and add MAILCHIMP_API_KEY and MAILCHIMP_AUDIENCE_ID. Apply them to Production and Preview as needed, then redeploy. Environment variable changes do not affect an existing deployment until it is redeployed.

Never commit .env.local or paste the API key into source control. If a key is lost, generate a new one in Mailchimp and replace the Vercel value.

3) Run the app

bun run dev

Open http://localhost:5173.

Scripts

  • bun run dev - start local dev server
  • bun run build - production build
  • bun run preview - preview production build
  • bun run check - Svelte + TypeScript checks
  • bun run check:watch - watch mode checks
  • bun run localize:images - download externally hosted image URLs into static/images/remote and rewrite references in source files

Additional utility script:

  • node scripts/convert-images-to-webp-ffmpeg.mjs - convert JPG/PNG/GIF in static/images to WebP, rewrite references, and remove original files (requires ffmpeg)

Project Structure

  • src/routes - page routes and API endpoints
  • src/lib/components - reusable UI sections and layout components
  • src/lib/server/planningCenter.ts - Planning Center API helpers for event pages
  • src/lib/stores/theme.ts - theme preference and DOM application logic
  • static/images - local static image assets (including localized remote images)
  • scripts - one-off content/image maintenance tooling

Notes

  • Header/footer are shared through src/routes/+layout.svelte.
  • Newsletter form in src/lib/components/Newsletter.svelte posts to /api/newsletter.
  • Events content is loaded from Planning Center and surfaced internally at /events.
  • Several nav links still point to external ChurchCenter/Realm destinations by design.

Popular repositories Loading

  1. fbcwimberley fbcwimberley Public

    Svelte