Next.js Discord

Discord Forum

Help with website dashboard connection

Unanswered
Odorous house ant posted this in #help-forum
Open in Discord
Odorous house antOP
I created a clothing brand website, bt I cant edit my product's post on this website, in order to add or remove post I need to create an admin page which will handle all the posts, but I dont know how to connect the user page with admin page so that whenever i make a change from admin page it will show on user page, can anyone tell me how to connect it? or if there is any other way to fix this please let me know

1 Reply

Chum salmon
Your admin page (let's call Admin Panel) will handle all product management. It is connected to a database so the data of your products is stored in the database. Whenever you create or make any changes to the product, the database will get an update and store the new data.

You user page (let's call it Frontend), display product information by retrieving data from the database (this is called fetching).

It's not easy to build your own Admin Panel from scratch so I recommend using a CMS. I use Payload CMS with Next.js.

Summary:
Admin Panel
- manages product information
- perform CRUD operations (create, read, update, or delete)
- and store the information in the database

Frontend
- Display product information (fetch from database)