Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 738 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 738 Bytes

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.