Skip to content

Lightweight pastebin for home network which may or may not be connected to the internet.

License

Notifications You must be signed in to change notification settings

josprachi/local-paste

 
 

Repository files navigation

LocalPaste

LocalPaste is a lightweight pastebin which can be hosted on a RaspberryPi.

Installation

$ git clone https://github.com/girish946/local-paste
$ cd local-paste
$ pip install -r requirements.txt

Usage

$ python startLp.py --port 8000

Using gunicorn

$ gunicorn wsgi:app -b 0.0.0.0:8000 --workers=2

using Docker

# build the image
$ sudo docker-compose -f docker-compose.yml build
# run the docker container
$ sudo docker-compose -f docker-compose.yml up

Settingup the tables and testing

For initial setup (ie. creating tables), once localpaste is running.

$ cd tests
$ python testLP.py

or go to http://0.0.0.0:8000/api/CreateDb from your browser.

About

Lightweight pastebin for home network which may or may not be connected to the internet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.8%
  • Python 20.7%
  • HTML 11.9%
  • Other 0.6%