What's the best way to make admin features for my MERN Stack Social Networking Site? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

What's the best way to make admin features for my MERN Stack Social Networking Site?

I am working on my very own client project which is a sort of social networking site. I have gone through users, posts, profiles and other features. Now I have to make admin features like Admin Panel which displays all the data to the admin to modify or delete or navigate. I guess it may also require additional back-end routes and also frontend components. The main thing is after someone posts a new article it should be in a state of approval and after the admin approves it using his admin pannel then only it gets public. So i will need to implement User Roles too. I have tried searching about it and can not find something suitable for my needs. Can you please guide through the process?

16th Nov 2019, 2:04 PM
Ashutosh Agrawal
Ashutosh Agrawal - avatar
4 Answers
+ 5
Firstly, it better to be a Web Socket, updating real-time. For the database, you need to have two roots: Approved, Pending. Approved stores the admin-approved posts, which the students/visitors account are retrieving. Pending stores the new submission, which the admin panel is retrieving. The reject action of admin pabel should do following : Remove the post from pending The approve action of admin panel should do following in this sequence: 1. Copy the post in Approved 2. After one successful, Remove the post in Pending. Note that the sequence must be copy first, after success then remove, otherwise content may be lost.
17th Nov 2019, 1:32 AM
Gordon
Gordon - avatar
+ 5
Burey Calviղ please help me
18th Nov 2019, 2:15 PM
Ashutosh Agrawal
Ashutosh Agrawal - avatar
+ 2
Yes i suggest these procedures given by bros, it very important real-time.
17th Nov 2019, 5:21 AM
Umar Farouq Gimba
Umar Farouq Gimba - avatar