+8

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?

11/16/2019 2:04:02 PM

Ashutosh Agrawal

5 Answers

New Answer

+4

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.

+4

Burey Calviղ please help me

+4

Here are few results for "mern admin panel" from google https://blog.logrocket.com/admin-panel-with-react/ https://github.com/androidneha/mern-admin-panel https://youtu.be/Efwp65XF0bM https://youtu.be/rF3d9mFC3zc

+1

Yes i suggest these procedures given by bros, it very important real-time.

0

in SQL database table: posts id title text date status 0 or 1 or 2 admin can change status from 0 to 1 or 2. Only those posts with status==1 are shown. status 0 in pending status 2 rejected