Project started: November 4, 2026
The problem
An appointment should not require a conversation. Independent professionals often answer availability questions between clients, then copy the agreed time into a separate calendar. Tengo Lugar gives them one link to share through WhatsApp or Instagram, so clients can see available times and book on their own, even while the professional is working.
How it works
- For clients: A public page shows services and available times. Clients book without creating an account and receive a private appointment link to cancel or reschedule within the cancellation policy.
- For professionals: A mobile-first agenda brings day and week views, manual bookings, blocked time, attendance, and waitlists into one place. Professionals can set their services and working hours and share a branded booking page.
- For follow-up: The notification system supports Web Push and scheduled reminders. The WhatsApp Cloud API integration supports booking verification and reminders when enabled; the agenda also supports manual follow-up.
Engineering decisions
Make the database the final authority on availability. Weekly hours follow the professional’s local time zone; bookings are stored as timestamps. The availability engine combines hours, exceptions, service duration, and existing bookings. A displayed slot is not a guarantee: the server checks it again when a client books, and a PostgreSQL exclusion constraint rejects overlapping active bookings even when requests arrive together. Back-to-back appointments remain valid.
Keep one application, with clear feature boundaries. A Next.js App Router application and a tRPC API form a modular monolith. Feature-local routers validate inputs with Zod, service layers handle booking rules, and Drizzle repositories own queries and transactions. Clerk sessions scope the professional agenda; private appointment links let clients manage a single booking without signing in. This keeps deployment simple without putting scheduling rules in page components.
Test the cases a demo cannot show. Vitest covers availability rules and daylight-saving transitions. PostgreSQL integration tests exercise the actual migrations, including simultaneous attempts to book the same time. Playwright scenarios cover onboarding, public booking, rescheduling, and the agenda. GitHub Actions also runs tests with a shifted clock to catch assumptions tied to today’s date.
Stack and tools
- Web: TypeScript, Next.js 15 (App Router), React 19, Tailwind CSS, shadcn/ui, and TanStack Query.
- API and data: tRPC 11, Zod, Drizzle ORM, and PostgreSQL on Supabase.
- Integrations: Clerk for authentication, Cloudinary for profile and gallery images, Meta WhatsApp Cloud API, and Web Push.
- Delivery and quality: Vercel and scheduled jobs, Sentry, pnpm and Turborepo, Docker Compose for local PostgreSQL, Vitest, Playwright, and GitHub Actions.