Pular para o conteúdo

RedeCasas Documentation

Welcome to the RedeCasas project documentation. This site covers every layer of the platform — from the Go static site generator to the Cloudflare Workers, database schema, testing suite, and deployment pipeline.

Explore the Project

Architecture

High-level overview of the 5-worker architecture, proxy routing, shared D1/KV infrastructure, and how everything connects. Learn more

Site Generator

The Go CLI that builds 50,000+ static pages — scopes, topics, city pages, daily rotation, templates, and build commands. Learn more

Workers

Auth, Billing, Listings, Corretores, and Chat workers — endpoints, security, Stripe integration, R2 uploads, AI search, and WebSockets. Learn more

API Reference

Complete REST API documentation — request/response schemas, authentication, rate limits, and curl examples for all 5 workers. Learn more

AI Assistant

What our AI can help you with — creating listings, registering as an agent, managing your account, searching properties, and market insights. Learn more

Database

SQLite/D1 schema, geographic data, content config, listings, blog, analytics, and the seeder CLI. Learn more

Frontend

Auth pages, the auth.js helper, city ads, static output structure, and user-facing flows. Learn more

QA & Testing

Playwright E2E test suite — critical path, regional sampling, page objects, performance budgets, and adding tests. Learn more

Deployment

Smart incremental deploy to R2, sitemap generation, HTML fixer, and production deployment scripts. Learn more

Scripts & Automation

Dev proxy, daily build cron, and automation scripts that orchestrate the full stack. Learn more