bmarone2002/MyPoints — reverse-engineered prompt
Reverse engineered prompt
Build me a simple loyalty points web app for a small business.
I want a dashboard where I can add customers with their name and email, see everyone in a table, add purchases for each customer, and automatically give them points based on how much they spent. Use the rule 1 euro equals 1 point, but make it easy to change later.
Customers should be able to earn rewards when they hit point levels, like 100 points for a free coffee, 300 for a discount, and 500 for a free product. From the dashboard I should be able to redeem a reward for a customer, subtract the points, and keep track of what they already redeemed.
Please make the app work locally with a React frontend and a Node backend, with basic validation and friendly success or error messages. Store the data in a simple database locally, but keep it deployable later with environment variables for a hosted database if needed. Include clear run commands so I can start the backend and frontend.
Want more depth? Deep Reverse