SPA Best Practice - Admin vs User

Case: you’re making an SPA website.

It will have both administrative functions and end-user functions.

Administrators will also be end-users.

Is there any problem in making the whole site on SPA? Or is it better to make at least some different pages for administration and have multi page SPA?

Hi.
We prefer to keep everything SPA with a robust access control.

Usually, end-user things are in a different app, with another app for admin stuff.
But having them in the same project should be fine as well.

You can create separate permission & roles in Wappler’s security restrict and use that in various SA to ensure security.

2 Likes

I make a user layout and a admin layout and then seperate pages for the user/admin for the different pages I need with a admin login landing page url

2 Likes