Certainly! Here's a clear and detailed prompt you can use to build an AI-assisted web application specifically for vehicle rental administration and listing by third-party owners, inspired by Webmotors but focused on rentals. The prompt is in English and structured for best AI coding outputs:
Prompt for AI Code Generation:
Project Brief: Vehicle Rental Platform (Inspired by Webmotors, Focused on Rentals)
Overview:
Build a modern, mobile-friendly web application where third-party vehicle owners can register, post their vehicles for rent, manage their listings, and track rental requests. The platform owner will provide the infrastructure and promotion but does not own the vehicles.
Key Features & Requirements:
-
User Roles:
- Owners: Register, log in, and manage their own rental vehicle listings.
- Customers: Browse available rental vehicles, filter by location, price, specs, and send rental requests.
- Admin (you): Moderate listings, manage users, and promote the platform.
-
Owner Vehicle Listings:
- Owners can create/edit/delete vehicle posts with:
- Photos/images upload
- Detailed specs (model, year, mileage, rental price per day, availability schedule, description)
- Location (city/region)
- Owners can see inquiries and rental requests for their vehicles in a dashboard.
-
Customer Browsing & Rental Requests:
- Customers explore listings via search and filters (price range, vehicle type, location).
- View detailed vehicle pages with images, specs, rental conditions.
- Submit rental requests with preferred dates and contact info.
- Receive confirmation or denial messages from owners.
-
Admin Panel:
- Manage users (owners and customers), moderate listings, view metrics (total vehicles, requests).
- Ability to feature or promote vehicles/listings.
- Send notifications or announcements to users.
-
Authentication & Authorization:
- Secure registration and login for owners and customers.
- Password recovery.
- Role-based access control to restrict dashboards and admin panel.
-
Responsive & Modern UI:
- Use a sleek dark theme with car-related color palette (black/dark grey, red, silver).
- Mobile-first design for seamless usability across devices.
-
Additional:
- Use Google Maps or similar API for location input and display.
- Placeholder integration for payment or messaging APIs to be added later.
- Include basic SEO optimizations and accessibility compliance.
Tech Stack Recommendations:
- Frontend: React or Next.js with Tailwind CSS or Material-UI
- Backend: Node.js with Express.js or Firebase (Firestore + Functions)
- Database: NoSQL (MongoDB or Firestore)
- Auth: Firebase Auth or Passport.js + JWT
- Image Storage: Cloudinary or AWS S3 placeholder
- Maps API: Google Maps API or Mapbox
- Email/Messaging: Placeholder for Twilio, SendGrid, or WhatsApp APIs
Deliverables:
- Full functional code for:
- User registrations and roles
- Vehicle posting/editing/removal by owners
- Customer search and rental inquiry features
- Admin user and content management panel
- Responsive UI with dark theme and brand colors
- Instructions for setup and adding payment/messaging later
Please generate a starter app scaffold or full example implementation capturing the above features.
If you want, I can provide code snippets, folder structure, example endpoints, or a full example next. Would you like me to?