AyaSulyman/EVCharging-System ? reverse-engineered prompt
Reverse engineered prompt
Build me a full EV charging reservation platform called ChargeHub.
Drivers should be able to find available chargers, book a station for a specific amount of time, from 15 to 120 minutes, pay a deposit, and then show up with a reservation code or QR code to check in. The booking flow should support flexible time windows too, so if a driver says they need about 30 minutes sometime during the day, the system can suggest the best options and explain why.
I also need a staff and operator side for running the station, seeing live reservations, handling walk ins, starting and ending charging sessions, managing incidents, and dealing with delays or overstay situations. Operators should be able to see scheduling performance, optimizer suggestions, waitlisted requests, and reservation history. Staff should be able to scan a QR code or enter a code manually to look up a booking and check the driver in.
Use the existing TypeScript and Next.js setup, with a separate frontend and backend, and keep all database access behind the API. If you need current docs or best practices, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit