Frost-bit-star/mpesa-based-wifi-billing — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a WiFi billing system for a small cybercafe or public hotspot where customers can buy internet time using MPesa STK Push from their phone. After a successful payment, the system should give that device internet access by whitelisting its MAC address on a MikroTik router, then automatically limit access based on the time package they bought.

I need a simple customer page where someone enters their phone number, picks a time plan, pays, and sees clear payment status messages. I also need an admin dashboard where I can log in securely, see payments, see active users, manage access, and log out. Please include proper backend security, hashed admin passwords, JWT sessions, good error handling, and protected admin pages.

Use React with Tailwind for the frontend, Node and Express for the backend, MySQL for the database, and Prisma if it helps. Add environment variable setup for MPesa, database, and MikroTik details. Look up current MPesa and MikroTik docs online if needed.

Want more depth? Deep Reverse