Open WYHNUS opened 7 years ago
Should the admin page be a separate website linked to ExchangeBuddy DB or implemented on top of the current website?
I was thinking the frontend can remain one the same website (built within the current application). We can use the /admin
frontend route to denote the admin page.
As for the endpoints, you would have to just simply check the user token and whether it is a privileged token, and allow or deny the request (like a middleware such as verifyToken
).
My only concern is the website become too large and loading time would be significant... But if we want to give other users admin privilege (instead of maintaining the site on our own), we might just integrate the admin page with the current site. :)
I think we might want to give others admin privileges!
Regarding the loading time, I know that Webpack can separate bundles. Before it gets too large we can handle it, but not for now.
Webpack can separate bundles
Wow. Good to know that. :)