r/JavaFX • u/Ok_Jackfruit_6541 • Jun 15 '23
Help Need suggestions for POS system
Hello, everyone!
I hope you're all doing well. I have developed a REST API backend service for my own restaurant and now I want to create a desktop application for this system. I would like the following features to be a part of my desktop application:
- Role-based authorization and page views.
- JWT token-based authentication and authorization.
- Routing for different page views.
I understand that these requirements resemble those of Angular or React applications, and that's accurate. What I'm looking for is a desktop application that functions similarly to a frontend JavaScript application.
My question is: Does JavaFX provide any support for routing and auth guard for page navigation? If it does, could you please guide me on where to start learning about it?
Thank you.
View all comments
Show parent comment
1
u/mitvitaminen Jun 25 '23 edited Jun 25 '23
Actually the view just knows the vm the vm the domain model. So i dont het your point. i would put all buisnesslogic logic in the viewmodel which i placed next to the view. the modelweapper class just leta ubind regular string fields ie to stringpropertys i think if u into javafx you should check out mvvmfx really but only then co side ing it is A javafx package