Bad Pastebin clone made to look like Forgejo.
Find a file
n a96939197f ok
Signed-off-by: n <n@noreply.localhost>
2025-02-16 21:46:18 -06:00
src ok 2025-02-16 21:46:18 -06:00
.gitignore config 2025-02-04 11:04:55 -06:00
LICENSE don't wanna get sued 2025-02-05 10:35:45 -06:00
README.md Update depends 2025-02-07 20:18:57 -06:00

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, psycopg2 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)