toastbin/README.md
2025-02-07 12:40:49 -06:00

1 KiB

toastbin

Bad Pastebin clone made to look like Forgejo (well, eventually at least).

docs

todo: make this more complete

currently, there's no reason to run this except for development. however, if you want to comtribute, you can submit pull requests either of these ways:

  • ask for a git.everypizza.im account (contact the admin with either @n:everypizza.im (matrix) or nyx@everypizza.im (xmpp))
  • send patches in a dm with either of those listed accounts.

running

  1. clone the repository
  2. copy src/toastbin/config.sample.json to src/toastbin/config.json
  3. install dependencies (currently, we just need flask and sqlalchemy from python and postgresql from the system repos but this almost absoultely will change)
  4. set up database:
CREATE DATABASE toastbin WITH ENCODING = 'UTF8';
CREATE USER toastbin WITH ENCRYPTED PASSWORD '{YOUR_PASSWORD}';
GRANT ALL PRIVILEGES ON DATABASE toastbin TO toastbin;
ALTER DATABASE toastbin OWNER TO toastbin;
\q
  1. run src/toastbin/app.py (python3 src/toastbin/app.py)