Reputation: 1
I am doing a small RESTfull API tutorial project as an information portal. I wrote the front by myself (html + css + js + a little burstrap). Rest chose because of the increasing popularity, since studying, then learning what is needed at the current time. In general, I will pass to the essence of the problem: a site is a few pages with articles, general information, pictures, etc. - in short, nothing supernatural, and there is no magic logic. I decided to implement an administrator, because someone has to edit these articles, and then I rested. I don’t understand how to implement it correctly? All I found was about spring security and the distribution of roles to users, but I don't need any users, I only need the site admin. How is this implemented correctly? Which way should I look? P.S. Several people advised me not to use spring for this, but to take something simpler, such as django or flask, but I am studying Java and would like to master spring.
Upvotes: 0
Views: 1169
Reputation: 871
Your question is not a coding question, it's an application design question.
The solution is actually embedded in your question,
All I found was about spring security and the distribution of roles to users
You can create a page from which the admin can log in and edit whatever needed, you will have to design the admin panel and stuff like that.
The users' creation and login mechanism is a well-documented subject. check here for example.
Check this for the JWT solution.
Upvotes: 0
Reputation: 19
How about considering spring boot admin https://codecentric.github.io/spring-boot-admin/current/ ?
I also used spring boot admin. it is powerful
Upvotes: 1