Overview
Happy Hour In My City (happyhourinmycity.com) is a restaurant happy-hour discovery site: browse and filter deals by city, neighbourhood and location on a map, with a directory of participating businesses. It's a Next.js app with a live public product for diners and a growing management layer for restaurant owners, starting with an owner dashboard backed by Supabase.
Problem
Happy hour deals are scattered across individual restaurant sites and social posts. There's no single place to discover what's on, where, and when, filtered by location. The goal was a directory-and-map product where a diner could find nearby deals at a glance, and where a restaurant owner could manage their own listing, including their own custom happy hours, instead of relying on someone else to keep it current.
What I built
- A public discovery experience: home page with hero, listings, and a map section, plus
/about,/mission,/faq(split into user and business FAQs),/join-restaurant, and/recommendfor growing the directory - City and neighbourhood filters on the listings, so diners can narrow deals to the part of town they're actually in
- Auth and account flows (
/login,/signup) backed by Supabase, with role-gating middleware that checks aprofilestable (role,approval_status,business_id) to protect/owner/*and/admin/*routes - An owner signup path that goes through
/owner/pending-approvaluntil an owner is approved, then into/owner/dashboard - A restaurant owner dashboard that resolves the signed-in owner's
business_idfrom Supabase and shows that restaurant's offers and recurring happy-hour rules - An Airtable-backed content API (
/businesses) pulling Businesses/Offers/Recurring Rules tables, with a local mock-data fallback so the app still runs without Airtable credentials in dev - Map display via
@vis.gl/react-google-maps, with geocoding routed through the free Nominatim API instead of paid Google Geocoding to control cost - Legal/support pages (
/disclaimer,/privacy,/terms), an offline PWA fallback page, and Capacitor scaffolding for a future native app wrapper - PostHog and Vercel Analytics wired in for usage tracking
Architecture
Next.js 16 (App Router, Turbopack) with Tailwind v4 and shadcn/radix-ui components.
Supabase handles auth and session state (@supabase/ssr), and middleware gates owner
and admin routes based on the profiles table. Listing content (businesses, offers,
recurring happy-hour rules) currently lives in Airtable: the /businesses route fetches
it through Airtable's REST API, and the owner dashboard's /api/owner/restaurant route
reads the owner's Supabase session, looks up their business_id, and pulls that
business's records from Airtable. Map rendering uses the Google Maps JS API, while
geocoding (converting addresses to coordinates) deliberately goes through free
Nominatim rather than Google's paid geocoding endpoint. The admin dashboard is still a
placeholder page.
Decisions
- Moving listing content from Airtable to Supabase: Airtable was the right tool to launch with. The team could enter businesses, offers and recurring rules in a spreadsheet-like editor without building an admin UI first. It stops fitting once restaurant owners manage their own listings. Owners need to add custom happy hours (their own days, times and deals) and edit them from the dashboard, which means per-owner write access, validation and row-level permissions that Airtable isn't built for. Supabase already holds auth and owner profiles, so moving listings there puts the content and the people allowed to change it in one Postgres database, with row-level security tying each owner to their own business. It also drops the extra Airtable round-trip and its rate limits from every page load.
- Nominatim over paid Google Geocoding: a deliberate cost-avoidance choice: the Google Maps key is scoped to JS map display only, keeping the app's per-request cost down while it's pre-revenue.
- Building the role-gating middleware before the dashboards it protects: set up
the access-control contract (who can see
/owner/*and/admin/*) ahead of time, so the owner dashboard could be built directly against a working permission system rather than retrofitting auth later.
Results
A live public site with discovery, city and neighbourhood filtering, a business
directory and account flows, promoted through happyhourinmycity.com, its register.
subdomain, and Instagram/TikTok (@happyhourinmycity). Approved restaurant owners can
sign in and see their own listing, offers and happy-hour rules in the owner dashboard.
What I learned
- Pick a data store for who has to write to it, not just who reads it. Airtable was ideal while only the team edited content. Once restaurant owners needed to create their own custom happy hours, the store needed per-user permissions and validation, and that is what pushed the move to Supabase.
- Building the permission layer first paid off. The owner dashboard went straight on top of the existing role and approval gating, with no auth retrofit.
- An approval step between signup and dashboard keeps unvetted accounts away from listing data, which matters once owners can change what diners see.
- Scoping paid APIs carefully (Google Maps for display only, free Nominatim for geocoding) matters for a pre-revenue local-discovery product, where per-request cost adds up fast as traffic grows.
- A mock-data fallback for the content API made local development and onboarding easy, since nobody needed Airtable credentials just to run the app.
What's next
- Migrate Businesses, Offers and Recurring Rules from Airtable into Supabase tables
- Let owners create and edit custom happy hours from the dashboard, with row-level security limiting each owner to their own business
- Build out the admin dashboard for owner approvals and listing moderation