Pular para o conteúdo

Getting Started

RedeCasas is a Brazilian real estate platform that generates tens of thousands of SEO-optimized static pages and provides interactive services through Cloudflare Workers.

Project Structure

The repository is organized into several top-level directories:

DirectoryPurpose
site/Go-based static site generator and templates
auth-worker/Email/password authentication worker
billing-worker/Stripe subscription management worker
listings-worker/Property listings CRUD and image upload worker
chat-worker/AI chat, search, and WebSocket worker
shared/Common TypeScript utilities (CORS, auth types)
db/SQLite/D1 schema, migrations, and seeder
qa/Playwright end-to-end testing suite
scripts/Dev orchestration, daily build, deployment helpers
requests/Bruno API request collections

Prerequisites

  • Go (for the site generator)
  • Node.js and npm (for workers, QA, and docs)
  • SQLite3 (for local database)
  • rclone (for deployments to R2)

Quick Start

1. Start the Development Environment

The unified dev environment starts the static site and all 4 Workers behind a proxy:

Terminal window
node scripts/dev.js

2. Build the Site

Terminal window
cd site
go run . build-pages

3. Run the QA Suite

Terminal window
cd qa
npm install
npx playwright install chromium
npm run test:critical

4. Start the Docs Site

Terminal window
cd docs
npm install
npm run dev

Docs will be available at http://localhost:4321.