giant-rental

bySuresh Basnet

You are a senior full-stack engineer, product designer, and database architect. Build **Phase 1 only** of a production-quality multi-tenant SaaS web application called **RentalDesk**. RentalDesk is a mobile-first operating system for small equipment and party-rental businesses, such as bounce-house, table/chair, tent, AV, tool, photo-booth, and generator rental companies. In later phases, it will manage inventory availability, quotes, customer deposits, bookings, delivery/pickup jobs, check-in/check-out inspections, damage charges, late fees, refunds, and Stripe subscription billing. In this phase, build ONLY the foundation. # 1. Phase 1 goal By the end of Phase 1, a new user must be able to: 1. Sign up with email and password. 2. Log in, log out, and reset their password. 3. Create a rental business. 4. Become the owner of that business. 5. See a protected dashboard. 6. See the app navigation. 7. See empty-state screens for future modules. 8. Access only their own business data. 9. Never access another business’s data. Do not build any feature that is not explicitly listed below. # 2. Tech stack Use exactly this stack: - Next.js App Router - TypeScript - Tailwind CSS - shadcn/ui - Supabase for Postgres, Auth, Storage, and Row Level Security - @supabase/supabase-js - @supabase/ssr - Zod for validation - React Hook Form for forms - Vercel-ready deployment structure Use cookie-based Supabase Auth for Next.js App Router. Create separate Supabase clients for: - Browser/client components - Server components - Server actions / route handlers Never expose these values to the browser: - SUPABASE_SERVICE_ROLE_KEY - STRIPE_SECRET_KEY - STRIPE_WEBHOOK_SECRET - RESEND_API_KEY Use environment variables and provide a `.env.example` file. # 3. What to build in Phase 1 ## A. Project setup Create a clean, production-quality Next.js project with: - TypeScript strict mode - ESLint - Prettier - Tailwind CSS - shadcn/ui - Absolute imports using `@/` - A scalable folder structure - Reusable UI components - Consistent error and loading states - Mobile-first responsive layout Do not use unnecessary libraries. ## B. Authentication Implement Supabase Auth with email and password. Build these pages: 1. `/auth/sign-up` 2. `/auth/login` 3. `/auth/forgot-password` 4. `/auth/reset-password` 5. `/auth/callback` Requirements: - Email and password signup - Email confirmation flow if Supabase requires it - Login - Logout - Forgot password - Reset password - Redirect unauthenticated users away from protected routes - Redirect authenticated users away from login/signup pages - Show clear validation errors - Show loading states on all auth buttons - Disable submit buttons while submitting - Prevent duplicate form submission - Never reveal whether an email exists during password reset Use Supabase Auth’s built-in session handling. Do not build custom JWT handling. ## C. Business onboarding After signup, if the user does not have a business, redirect them to: ```text /onboarding/create-business

Landing
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks

24 planning tasks
#1

Generate system requirement document

0m 48s0.05 cr used
Done
#2

Generate personas & user flows

0m 6s0.05 cr used
Done
#5

Architecture

0.05 cr needed
Backlog
#6

Workspace task plan

0.05 cr needed
Backlog
#7

Create flow for Rental business owner

0m 5sCredits in parent
Done
#8

Landing

2m 56sCredits in subtasks
Done
#9

/auth/sign-up

Credits in subtasks
Backlog
#10

/auth/login

Credits in subtasks
Backlog
#11

/auth/forgot-password

Credits in subtasks
Backlog
#12

/auth/reset-password

Credits in subtasks
Backlog
#13

/onboarding/create-business

Credits in subtasks
Backlog
#14

Dashboard

Credits in subtasks
Backlog
#15

Modules

Credits in subtasks
Backlog
#16

/auth/callback

Credits in subtasks
Backlog
#17

Landing / Hero

0m 31s0.85 cr used
Done
#18

Landing / Pattern Band

0m 19s0.85 cr used
Done
#19

Landing / Foundation Panel

0m 24s0.85 cr used
Done
#20

Landing / Closing Band

0m 17s0.85 cr used
Done
#21

Landing / Footer

0m 0s0.85 cr used
Done
#22

Footer

0m 15sCredits in parent
Done
#23

Fix Landing: Hero and closing-band account links use incorrect auth paths ( and ), so the primary…

0m 59sCredits unavailable
Error
#24

Fix Landing: The hero identifies the product as , contradicting the required Rental Desk identity and…

0m 39sCredits unavailable
Done
#25

Fix Landing review findings: Hero and closing-band account links use incorrect auth… (+1 more)

0m 16s0 cr used
Done
#26

Fix Landing review finding: Hero and closing-band account links use incorrect auth…

0m 3s0 cr used
Error
Live
Landing design preview
Landing: Select create your business
/auth/sign-up: 1. Submit email and password
/auth/sign-up: 2. Correct validation errors and retry
/auth/callback: Open confirmation link
/auth/callback: Recover from expired link
/onboarding/create-business: 1. Complete business creation form
/onboarding/create-business: 2. Correct errors and retry
Dashboard: 3. View business dashboard
Dashboard: 4. Retry after data error
Modules: 5. View empty-state modules
Modules: 6. Retry after render error
Dashboard: 7. Return to dashboard
Dashboard: 8. Log out
/auth/login: 9. Submit email and password
/auth/login: 10. Retry after invalid credentials
/auth/forgot-password: 11. Request password reset
/auth/forgot-password: 12. Read neutral confirmation
/auth/reset-password: 13. Set new password
/auth/reset-password: 14. Request new reset link
/auth/login: 15. Log in with new password
Live
Landing design preview
Landing: Select create your business
/auth/sign-up: 1. Submit email and password
/auth/sign-up: 2. Correct validation errors and retry
/auth/callback: Open confirmation link
/auth/callback: Recover from expired link
/onboarding/create-business: 1. Complete business creation form
/onboarding/create-business: 2. Correct errors and retry
Dashboard: 3. View business dashboard
Dashboard: 4. Retry after data error
Modules: 5. View empty-state modules
Modules: 6. Retry after render error
Dashboard: 7. Return to dashboard
Dashboard: 8. Log out
/auth/login: 9. Submit email and password
/auth/login: 10. Retry after invalid credentials
/auth/forgot-password: 11. Request password reset
/auth/forgot-password: 12. Read neutral confirmation
/auth/reset-password: 13. Set new password
/auth/reset-password: 14. Request new reset link
/auth/login: 15. Log in with new password