This app shows all logs activity, from Auth0, on a map as a heatmap
This app shows all logs activity, from Auth0, on a map as a heatmap. The information is got from /api/v2/logs
. From the IP of the user, and using a third-party service (http://ip-api.com), we obtain an approximation of the latitude and longitude.
For retrieving the tiles and for drawing the map we use Mapbox and mapbox-gl
library, respectively.
Since this is considered a hacking exercise, some liberties have been taken:
.env
file (in the future this will be handled from a backend app, using Machine to Machine flow).localStorage
. This cache should be handle also from a backend app (1).Map.jsx
file has a lot of style information. This will be moved to an external file.fields
param is being used for some performance improvement).Edit .env
file in the root of the project.
read:logs
permission.In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
This project was bootstrapped with Create React App.
(1). If your IP gets banned, go to http://ip-api.com/docs/unban