H
H
heducose2017-07-22 15:29:19
Node.js
heducose, 2017-07-22 15:29:19

How to create an admin panel for Node?

How to create an admin panel with statistics for a NodeJS backend website?
I understand that part of it is done by marketing trackers and so on.
But I'm talking about something else. Here are the offhand questions:
1. For example, the statistics of logins in general and by user specifically, in general, visits, clicks on certain elements.
2. How is it all organized in general? I suppose this is all saved to the database (I have Monga now) and then screwed to the admin GUI?
3. What libraries are needed, what solutions are there?
4. Do loggers help in this way, for example? Can they be used to collect user agents for example? What else can they collect?
5. Is it possible to fasten the verification and recording of IP, geolocation? Strongly it will load all the server?
6. What can be assembled using Nodes and modules?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Larisa Moroz, 2017-07-23
@heducose

1. Login statistics, etc. write in mongo, although you can dodge and create such an API in which everything can be automatically logged to files at a lower (and, accordingly, less loading system) level (see paragraph 4)
2. Yes
3. You can write an admin panel from scratch » as a separate JS backend module, you can use ready-made libraries (like React.js ) and almost ready-made modules (like https://simov.github.io/express-admin/ ), to which you can only add your GUI
4. Loggers, of course, they will help, but they work quite slowly compared to the built-in http server (NGINX, for example) the ability to log all requests (there are both IP and user-agent and much more)
5. You can. Will ship. Although a lot depends on attendance, on the server and its settings (memory, disk type, choice of file system, etc. ...)
6. Long list. Just write what you need and get an answer - is it possible or not.
PS: Due to the complexity, setting up some kind of google analytics or yandex will, of course, be easier and faster.
But trackers are blocked by a certain % of clients (antivirus, ad-block, etc.), so the statistics will be inaccurate.
The server and its client script will be able to collect 100% of statistics.

V
Vitaly, 2017-07-23
@vshvydky

https://github.com/marmelab/admin-on-rest
Here is an interesting piece

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question