W
W
Wasya UK2018-06-10 17:32:12
CMS
Wasya UK, 2018-06-10 17:32:12

How to make a desktop admin panel for a website?

I am writing a site on a node, and a desktop program for managing the content of the site. Now I'm thinking: "And where to implement the code for writing to the database?". The fact is that the database is in a separate hosting, and the files will be stored on the CDN.
Question: write requests on the server side, and through the program make requests to it and thus add new information and files? Or add directly through the program, and the server only give data to users?
Thanks in advance)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor P., 2018-06-11
@dmc1989

Hey!
If you do not plan authentication and authorization on the site, then it makes sense to move the admin panel to another place, the main site will be cleaner and simpler. But if a personal account is planned, then it makes no sense to take out the admin panel, it’s easier to add a management page than to create another project for this

V
Vladimir Proskurin, 2018-06-10
@Vlad_IT

Make a REST API on the server for admin actions, and on the client, make a regular SPA application that sends commands (add something, delete, etc.) to the server with an ajax request.
Thus, the database will remain on the server, and the client can be installed on different machines, and you can transfer it to a browser or mobile application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question