I use morgan for logging and I'd like something similar to "track" users based on their ip/useragent etc,.Basically, need a way to count unique views on my site and if there is a package already for this, that'd be awesome.otherwise, i am thinking of streaming each GET request to specified endpoints, writing the user agent and info to a file, and after X hours, I delete duplicates and batch insert the results into my database.(to prevent constantly writing to the db).I am using reactjs on the front, and express in the backend.any advice would be appreciated.
Submitted February 21, 2018 at 03:10PM by sayurichick
No comments:
Post a Comment