M
M
mslavenko2020-07-17 11:10:31
Express.js
mslavenko, 2020-07-17 11:10:31

Creating an admin panel for an online store on React. Where to do admin?

A question about the build architecture.
I am developing an online store on React.js.
The server part of Express + SQL, through the API work with the application.
The question arose of creating an admin panel for adding products, categories and other things.
Main question. How would it be better to make an admin panel? I see two main options:
1) Make it on the same domain, just open it with the link "/admin", but I'm afraid that this is not the best idea in terms of security.
2) Take out on a separate site, with access to let's say VPN (or something like that)?
Well, or offer other options, I haven’t written FullStack applications before, maybe there are ready-made good practices.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dasha Tsiklauri, 2020-07-17
@mslavenko

do it on a subdomain - it will be easier to proxy with the same nginx, for implementation it is convenient to use
ready-made solutions

R
Roman Khegay, 2020-07-17
@khegay

The same React on a separate domain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question