Bad Pastebin clone made to look like Forgejo.
|
||
---|---|---|
src | ||
.gitignore | ||
LICENSE | ||
README.md |
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
- clone the repository
- copy
src/toastbin/config.sample.json
tosrc/toastbin/config.json
- install dependencies (currently, we just need
flask
,psycopg2
andsqlalchemy
from python andpostgresql
from the system repos but this almost absoultely will change) - 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
- run
src/toastbin/app.py
(python3 src/toastbin/app.py
)