KenilGondaliya/Microservices-CRUD-WITH-JWT ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Jakarta EE microservices CRUD app with JWT login, using the two projects in this repo, one for the main API and one for the client app.
I want the main app to manage users with create, read, update, and delete actions for fields like id, name, email, and phone, backed by MySQL with JPA and a service layer. Protect the REST endpoints so only an authenticated user with the chief role can use them. Set up JWT based auth and the MicroProfile config needed for it.
Then make the client app call those protected REST endpoints with a REST client, sending the JWT automatically on every request. Keep the client simple, like a servlet driven UI or request flow that can trigger the user actions. Use Payara Micro for deployment and make sure the app can run with the provided database driver and JWT setup. If anything is unclear, check the current docs online and fill in the missing pieces so it works end to end.
Are you gonna build this?
make sure you review the code using coderabbit