Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hedho/kissmoperl
KISSmo Perl Version
https://github.com/hedho/kissmoperl
kissmo kissmoperl paste pastebin pastebin-service pastebinalternative pastebins perl perl5 self-hosted selfhosted
Last synced: about 1 month ago
JSON representation
KISSmo Perl Version
- Host: GitHub
- URL: https://github.com/hedho/kissmoperl
- Owner: hedho
- Created: 2023-01-27T10:33:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T18:41:44.000Z (about 1 year ago)
- Last Synced: 2024-10-13T11:42:36.978Z (2 months ago)
- Topics: kissmo, kissmoperl, paste, pastebin, pastebin-service, pastebinalternative, pastebins, perl, perl5, self-hosted, selfhosted
- Language: Perl
- Homepage: https://paste.hax.al
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setting up and Running the KISSmo Perl
To set up and run the Perl code you provided, follow the steps below. This guide assumes you are using a Unix-like system (e.g., Linux or *BSD or macOS) and have Perl installed.
### Step 1: Install Required Modules
Before running the code, you need to install the required Perl modules. Open your terminal and execute the following command:
`cpanm Mojolicious DBI File::Slurp`
or
`cpan install Mojolicious::Lite`
`cpan install DBI`
`cpan install File::Slurp`
This command uses the `cpanm` tool to install the necessary modules (`Mojolicious`, `DBI`, and `File::Slurp`). If you don't have `cpanm` installed, you can install it by running `cpan App::cpanminus`.
### Step 2: Create the SQLite Database
The code uses an SQLite database to store the pastes. Create an empty SQLite database file named `pastes.db` in the same directory as the Perl script. You can do this with the following command:
`touch pastes.db && mkdir pastes`
### Step 3: Run the Perl Script
Once you have installed the modules and created the database file, you can run the Perl script. Open your terminal and navigate to the directory containing the script (`cd path/to/script`). Then execute the following command:
`perl paste.pl daemon -m production -l http://0.0.0.0:7878`
This command starts the Mojolicious application as a daemon process. You should see output similar to:
`[Sun Jun 23 12:34:56 2023] [info] Listening at "http://ip:7878"`
### Step 4: Access the Application
Open a web browser and visit `http://ip:7878` to access the application. You should see a web page with a text area where you can enter your content.
### Step 5: Test the Application
You can test the application by entering some content in the text area and clicking the "Create paste" button. The application will generate a unique ID for the paste and display the paste's details.
### Step 6: Accessing Raw Paste Data
To access the raw content of a paste, you can click the "RAW" button on the paste's detail page.
That's it! You have successfully set up and run the Perl script. You can continue using the application by creating and accessing pastes through the web interface.
**Note**: Remember to keep the terminal running while you want the application to be accessible. You can stop the application by pressing Ctrl+C in the terminal.
# KISSmo 1.1.7 Release note
https://github.com/hedho/KISSmoPerl/releases/tag/v1.1.7
### Demo:
https://paste.hax.al/