Grizzly2578/DSAA ? reverse-engineered prompt
Reverse engineered prompt
Build me a Java cafe management system with both a command line app and a web dashboard.
I want it to let staff log in as either manager or barista, then view the menu, add items to a cart, place orders, and mark orders as completed. Managers should also be able to add, edit, and delete menu items, and see a summary screen with pending orders, completed sales, items sold, revenue, and a sales history. The menu should support drinks with different sizes and prices, plus pastries with a standard price.
Please make the web side a simple modern dashboard that talks to the Java backend through HTTP, with login, role based access, light and dark mode, toast messages, and live updating order queues. The backend should use only plain Java, no Spring or other external dependencies, and keep the data structures efficient and thread safe since the CLI and web app both need to work at the same time.
If you need to, look up current Java docs online for anything unclear.
Are you gonna build this?
make sure you review the code using coderabbit