Baselyosry/tennis-finder-backend ? reverse-engineered prompt

Reverse engineered prompt

Build me the backend for a tennis app called TennisFinder.

I want a REST API that lets players and court owners use the app for court listings, bookings, matches, tournaments, reviews, chat, notifications, and a small marketplace for items and coaching services. It should use Supabase for login and keep users linked to their Supabase account, then store the rest of the app data in PostgreSQL. Make it in TypeScript with a clean Express setup, and keep the business logic out of the route handlers.

Please include the main endpoints for users, courts, bookings, items, matches, tournaments, reviews, academies, coaches, sessions, memberships, rankings, venues, open matches, badges, chat, and uploads. Add basic health checking, good error handling, auth protection for private routes, and role checks where owners or organizers need access. I also want support for an external AI service for things like price suggestions and match recommendations, with safe fallbacks if it is unavailable.

If you need current docs for anything, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab