How mohdasif-one/website-dev works
REACH Studio is a public agency website with a React single-page frontend and Go API. Visitors explore the studio’s work, services, approach, process, and pricing, then submit a quote request; the API validates and stores requests. Newsletter signup and health checking are separate API capabilities. The backend supports PostgreSQL and a local SQLite fallback. Edges follow sampled calls or explicit README documentation; the subscription UI and several storage details were not sampled, so those links are not inferred.
Main entry points: store.go Store adapter · router.go HTTP routes · App.tsx App routing · main.go API server
Components 22
Public website
- App routing
frontend/src/app/App.tsx - Agency landing
frontend/src/pages/HomePage.tsx - Site interactions
frontend/src/hooks/useSiteInteractions.ts - Quote form
frontend/src/components/QuoteForm.tsx - Not found
frontend/src/pages/NotFoundPage.tsx - Query client
frontend/src/app/queryClient.ts - Quote API client
frontend/src/api/quotes.ts - Subscription API client
frontend/src/api/subscriptions.ts - HTTP client
frontend/src/api/client.ts
API workflows
- API server
backend/cmd/api/main.go - HTTP routes
backend/internal/httpapi/router.go - Quote intake
backend/internal/httpapi/router.go - Newsletter signup
backend/internal/httpapi/router.go - Health check
backend/internal/httpapi/router.go - Runtime config
backend/internal/config/config.go
Persistence
- Store adapter
backend/internal/store/store.go - Postgres bindings
backend/internal/store/dbgen/quotes.sql.go - PostgreSQL
backend/db/migrations/postgres/00001_initial_schema.sql - SQLite fallback
backend/internal/store/store.go - Subscriber records
backend/internal/store/store.go
Other components
- Site visitor
- API caller
Connections 24
- Site visitor → App routing: opens site
- App routing → Agency landing: routes to
frontend/src/app/App.tsx - App routing → Not found: routes unmatched
frontend/src/app/App.tsx - App routing → Query client: provides queries
frontend/src/app/App.tsx - Agency landing → Site interactions: uses interactions
frontend/src/pages/HomePage.tsx - Agency landing → Quote form: renders form
frontend/src/pages/HomePage.tsx - Quote form → Quote API client: submits quote
frontend/src/components/QuoteForm.tsx - Quote API client → HTTP client: requests through
frontend/src/api/quotes.ts - Subscription API client → HTTP client: requests through
frontend/src/api/subscriptions.ts - API caller → HTTP routes: sends API request
backend/internal/httpapi/router.go - API server → Runtime config: loads settings
backend/cmd/api/main.go - API server → Store adapter: opens store
backend/cmd/api/main.go - API server → HTTP routes: serves handler
backend/cmd/api/main.go - HTTP routes → Quote intake: registers route
backend/internal/httpapi/router.go - HTTP routes → Newsletter signup: registers route
backend/internal/httpapi/router.go - HTTP routes → Health check: registers route
backend/internal/httpapi/router.go - Quote intake → Store adapter: saves quote
backend/internal/httpapi/router.go - Newsletter signup → Store adapter: saves email
backend/internal/httpapi/router.go - Health check → Store adapter: checks connection
backend/internal/httpapi/router.go - Store adapter → Postgres bindings: uses bindings
backend/internal/store/store.go - Store adapter → PostgreSQL: migrates schema
backend/internal/store/store.go - Store adapter → SQLite fallback: writes locally
backend/internal/store/store.go - Store adapter → Subscriber records: stores subscribers
backend/internal/store/store.go - HTTP client → HTTP routes: calls API