Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.
/ ip-info-prober-gui Public archive

An GUI application to look up IPv4, IPv6 addresses in IP Geolocation API for USYD SOFT3202 Final Exam

License

Notifications You must be signed in to change notification settings

Soooda/ip-info-prober-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP Info Prober with GUI

This code base is modified from one of my school project.

Features:

  • JavaFX GUI

  • Data caching

  • Multi-threading

Run

To run this project, simply do:

$ gradle run --args="<online/offline> <online/offline>"

with the first controlling the input API, and the second controlling the output API.

API Online Offline
Input Real information coming from IP Geolocation Mock API for testing purpose
Output PasteBin Command-line Text Output

Configuration

API Keys

Please create a valid .env before running any testcases and using the application in online mode (for both input and output APIs), some may fail due to FileNotFoundException.

Create a .env file under src/main/resources/ with:

IP_API_KEY=<your_key>
PASTEBIN_API_KEY=<your_key>

Database

The database is for caching purpose.

cache.db is located under src/main/resources. By default, it is empty.

Schema:

sqlite> .schema
CREATE TABLE cache (ip string, json string);

init.sql in the same directory is provided for re-generating the database. To reset simply run:

$ rm cache.db
$ sqlite3 cache.db < init.sql

References

GET/POST https://square.github.io/okhttp/

About

An GUI application to look up IPv4, IPv6 addresses in IP Geolocation API for USYD SOFT3202 Final Exam

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published