# 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: ```sql 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 ``` 5. run `src/toastbin/app.py` (`python3 src/toastbin/app.py`)