A production-ready, VIBE Code compliant monorepo with a modular monolith backend (Bun + ElysiaJS) and React frontend, featuring User (MySQL/Drizzle) and Notification (MongoDB/Typegoose) modules, with comprehensive testing, internationalization, and GCP-focused infrastructure.
Comprehensive documentation available in multiple languages:
- Complete Documentation - Full English documentation
- DocumentaΓ§Γ£o Completa - DocumentaΓ§Γ£o em portuguΓͺs
- Primeiros Passos
- VisΓ£o Geral da Arquitetura
- Guia do Backend (em inglΓͺs, veja en-US)
- Guia do Frontend (em inglΓͺs, veja en-US)
- Guia de Infraestrutura (em inglΓͺs, veja en-US)
- Guia de Deployment (em inglΓͺs, veja en-US)
- Guia de ContribuiΓ§Γ£o (em inglΓͺs, veja en-US)
# 1. Clone repository
git clone <repository-url>
cd VibeWork
# 2. Install dependencies
bun install
# 3. Configure environment
cp .env.example .env
# Edit .env with your settings
# 4. Start services
docker-compose up -d
# 5. Run migrations
cd backend && bun run db:migrate
# 6. Start development servers
cd .. && bun run devOpen:
- Frontend: http://localhost:5173
- Backend: http://localhost:3000
- API Docs: http://localhost:3000/swagger
See Getting Started Guide for detailed setup.
VibeWork/
βββ backend/ # ElysiaJS API backend
βββ frontend/ # React SPA
βββ shared/
β βββ contract/ # Shared TypeBox schemas
βββ infra/ # Terraform IaC (GCP)
βββ e2e/ # Playwright tests
βββ docs/ # Documentation
β βββ en-US/ # English docs
β βββ pt-BR/ # Portuguese docs
βββ docker-compose.yml # Local dev services
| Layer | Technology | Purpose |
|---|---|---|
| Runtime | Bun 1.2.8 | Fast JavaScript runtime |
| Backend | ElysiaJS | Type-safe REST API |
| Frontend | React 18 + Vite | Modern SPA |
| SQL DB | MySQL 8.0 + Drizzle | Relational data |
| Document DB | MongoDB 6.0 + Typegoose | Document storage |
| Cache | Redis 7.0 | Performance caching |
| Events | Google Cloud Pub/Sub | Async messaging |
| AWS SES | Email delivery | |
| Auth | Better-Auth | Authentication |
| RPC | Eden | Type-safe API calls |
| State Mgmt | TanStack Query | Server state |
| i18n | i18next | Localization (en, pt-BR) |
| Testing | Vitest + Playwright | Unit & E2E tests |
| Monorepo | Turborepo + Bun | Build orchestration |
- Type-Safe End-to-End: TypeBox schemas used by frontend and backend
- Modular Monolith: Backend architecture ready for microservice extraction
- Event-Driven: Pub/Sub for async operations
- Multi-Language: Built-in support for English and Portuguese
- Comprehensive Testing: Unit, integration, and E2E tests
- Production-Ready: Database backups, monitoring, zero-downtime deployment
- Infrastructure as Code: Terraform for GCP infrastructure
# Development
bun install # Install dependencies
docker-compose up -d # Start services
bun run dev # Start all dev servers
bun run db:migrate # Run database migrations
# Testing
bun run test # Unit tests
bun run test:integration # Integration tests
bun run test:e2e # E2E tests
bun run test:coverage # Coverage report
# Code Quality
bun run lint # Check linting
bun run lint:fix # Auto-fix linting
bun run typecheck # TypeScript check
bun run format # Format code
# Building
bun run build # Build all packages
bun run clean # Clean artifactsSee CLAUDE.md for detailed command reference.
- Setup Guide (English) - Environment configuration
- Guia de InΓcio (PortuguΓͺs) - ConfiguraΓ§Γ£o em portuguΓͺs
- Architecture Overview (English) - System design and data flows
- VisΓ£o Geral da Arquitetura (PortuguΓͺs) - Design do sistema
- Backend Setup - Installation and configuration
- API Reference - Complete endpoint documentation
- Modules Guide - Users & Notifications architecture
- Database Guide - MySQL, MongoDB, schemas & migrations
- Infrastructure - Redis, Pub/Sub, SES, health checks
- Testing Guide - Unit, integration tests
- Frontend Setup - Development environment
- Components Guide - React components & patterns
- State Management - TanStack Query guide
- Internationalization - i18n configuration
- Testing Guide - Component & E2E tests
- Contract Package - TypeBox schemas & validation
- UI Components - Component library
- Infrastructure Guide - Docker, GCP, services
- Deployment Guide - Production deployment & CI/CD
- Contributing Guide - Code standards & workflow
- backend/CLAUDE.md - Backend overview & commands
- frontend/CLAUDE.md - Frontend overview
- backend/modules/users/CLAUDE.md - Users & authentication
- backend/modules/notifications/CLAUDE.md - Notifications system
- shared/contract/CLAUDE.md - Shared contracts
ββββββββββββββββββββββββββββββ
β Frontend (React + Vite) β
β TanStack Query + Eden RPC β
ββββββββββββββββ¬ββββββββββββββ
β HTTP/REST
ββββββββββββββββΌββββββββββββββ
β Backend (ElysiaJS + Bun) β
β βββ Users Module β
β βββ Notifications Module β
ββββββββββββββββ¬ββββββββββββββ
β
ββββββββββββΌβββββββββββ¬βββββββββββββ
βΌ βΌ βΌ βΌ
MySQL MongoDB Redis Pub/Sub
(Data) (Docs) (Cache) (Events)
- Passwords hashed with Argon2id (OWASP recommended)
- HTTP-only session cookies
- Input validation on all endpoints
- HTTPS/TLS in production
- Rate limiting at reverse proxy
- Environment variables for secrets
- Unit Tests: 80%+ coverage
- Integration Tests: Critical paths covered
- E2E Tests: User workflows covered
- Performance: Monitoring and alerts configured
- English (en) - Default
- Portuguese (Brazil) (pt-BR) - Fully translated
- Easy to add more languages via i18n
docker-compose up -d
bun run devgcloud run deploy vibe-backend-staging \
--image gcr.io/project/vibe-backend:staginggcloud run deploy vibe-backend \
--image gcr.io/project/vibe-backend:latest \
--region us-central1See Deployment Guide for details.
- Fork the repository
- Create feature branch:
git checkout -b feature/my-feature - Commit changes:
git commit -m "feat: description" - Push to branch:
git push origin feature/my-feature - Create Pull Request
See Contributing Guide for conventions.
MIT License - see LICENSE file for details
- Check documentation
- Review existing issues
- Start discussion
- See CLAUDE.md for original project documentation
- Consulte a documentaΓ§Γ£o
- Revise problemas existentes
- Inicie uma discussΓ£o
- Veja CLAUDE.md para documentaΓ§Γ£o original do projeto
- Bun Documentation - JavaScript runtime
- ElysiaJS Documentation - Backend framework
- React Documentation - Frontend framework
- TanStack Query - State management
- TypeBox - Schema validation
- Drizzle ORM - SQL ORM
- Typegoose - MongoDB ODM
- i18next - Localization
- π¬π§ English - Full documentation available
- π§π· PortuguΓͺs (Brasil) - Partial documentation (getting started, architecture)
- More languages can be easily added via i18n
Built with VibeWork framework and VIBE Code standards.
Status: Production-Ready β Version: 1.0.0 Last Updated: December 2024 License: MIT
- π Quick Start
- π English Docs | Portuguese Docs
- π€ Contributing
- π Full Documentation Map
- ποΈ Architecture Overview
Get started in 5 minutes: Follow the Quick Start section above!
