A very simple pastebin/hastebin alternative
Also check out FileStash if you like this!
- NodeJS (Recommended version: 20)
- NPM
git clone https://github.com/simoonoravec/textstash.git
cd textstash
npm install
Rename config.example.js to config.js and adjust the configuration as you need to
npm start
To run the application in background, I recommend using PM2. But feel free to use other methods (such as creating a systemd service).
I'm assuming you already have Node.js and NPM installed
Recommeded version: 20
- Follow the installation steps from above (How to install)
- Stop the application if you already started it
- Install PM2 on your system
$ npm install pm2 -g
- Start the application with PM2
$ pm2 start index.js --name TextStash
- Configure PM2 to start on boot
$ pm2 startup
- Save PM2 process list
$ pm2 save
- Done!
Complete PM2 documentation can be found here: https://pm2.keymetrics.io/docs/usage/quick-start/