No description
- Perl 96.4%
- Makefile 3.6%
|
|
||
|---|---|---|
| app.pl | ||
| cpanfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
simple-perl-gui
Perl Tk REST Application A GUI application built with Perl/Tk that integrates with REST API endpoints.
Features
- Configurable API endpoint URL
- API key authentication (Bearer token)
- Settings persisted to JSON config file
- GET/POST request support
- JSON request/response handling
Requirements
Debian/Ubuntu
Install cpanminus and the required system dependencies:
sudo apt-get install cpanminus libtk-perl libjson-perl libwww-perl libfile-homedir-perl
Then install any remaining Perl modules:
sudo cpanm Tk JSON LWP::UserAgent HTTP::Request::Common File::HomeDir
or
make deps
Other Linux/macOS
Install the required Perl modules:
cpan Tk JSON LWP::UserAgent HTTP::Request::Common File::HomeDir
Or with cpanm:
cpanm Tk JSON LWP::UserAgent HTTP::Request::Common File::HomeDir
Usage
perl app.pl
or
make run
Menu Options
- File → Settings: Configure API URL and API key
- File → Exit: Close the application
- Help → About: Application information
Making Requests
- Configure your API endpoint URL and key in Settings
- Enter the endpoint path (e.g.,
/api/v1/resource) - Select HTTP method (GET or POST)
- Click "Send Request"
- View the JSON response in the text area
Configuration
Settings are stored in:
- Linux:
~/.local/share/perl_tk_app/config.json - macOS:
~/Library/Application Support/perl_tk_app/config.json - Windows:
%LOCALAPPDATA%\perl_tk_app\config.json