Installation and Setup-
Copy the Git Clone URL (CMD + C) Cd into desired directory in your terminal Git clone (CMD + V) to paste the URL, run the command The application runs without a server since the API serve as the backend.
Currently hosted at https://andrewdc92.github.io/ip-tracker/
Just click the link and it will render your approximate location. Mobile results will vary if you're connected to 3g/4g/LTE.
I could have utilized the built-in HTML geolocation feature instead of the API, but that requires the user to accept permission. I wanted this to serve as a simple educational resource for showing the metadata that is attached an IP address.
The optional challenge here was to create a custom directive, so I went an unconventional route to pursue the challenge. I ran the majority of the logic through a custom directive instead of a controller to run the API request.