No description
  • CSS 39.8%
  • Python 35.2%
  • HTML 25%
Find a file
2026-05-25 16:18:08 +01:00
app (Fix) Weird deletion issue. Fixed. 2026-04-21 13:46:58 +01:00
.gitignore Updating git ignore. 2026-04-20 19:39:29 +01:00
config.py.example (Task) Added in a discord bridge, and all the pain that came with getting THAT to work fuck 2025-10-27 13:38:41 +00:00
dockerfile First push 2025-09-22 12:36:47 +01:00
README.md (chore) removed redis references from README.md until I get it working. Moved to new git site. 2026-05-25 16:18:08 +01:00
requirements.txt (Task) Added in a discord bridge, and all the pain that came with getting THAT to work fuck 2025-10-27 13:38:41 +00:00
run.py.example (Fix) Updated run.py.example as it's little different because of the drawcrap 2025-10-05 16:42:22 +01:00
tools_create-admin.py (Chore) Renamed some files, created tool to create a post 2025-10-08 21:37:13 +01:00
tools_create-test-replies.py (Chore) Renamed some files, created tool to create a post 2025-10-08 21:37:13 +01:00
tools_create-test-threads.py (Chore) Renamed some files, created tool to create a post 2025-10-08 21:37:13 +01:00
tools_flask-migrate-wrapper.py (Chore) Tidying up tools 2025-09-24 17:04:07 +01:00
tools_manual-post.py (Chore) Renamed some files, created tool to create a post 2025-10-08 21:37:13 +01:00
tools_manual-unban.py (Chore) Renamed some files, created tool to create a post 2025-10-08 21:37:13 +01:00
tools_purge-board.py (Chore) Renamed some files, created tool to create a post 2025-10-08 21:37:13 +01:00
wsgi.py (Fix) Hopefully fixed the realtime drawing for good. There ARE bugs but it actually works better now than ever. 2026-04-21 13:33:10 +01:00

uhhhh intro

It's a poorly thrown together image/text board.

shortlist of prereqs

python3, an open mind

setup

good luck

# have python3.something installed and then:
$ python3 -m venv ~/weevenv # or wherever you want it
$ source ~/weevenv/bin/activate
$ pip install -r requirements.txt
$ cp run.py.example run.py
$ cp config.py.example config.py
$ vim config.py # give yourself a nice flask key
$ vim run.py # Adjust how you need it to run
$ flask db init
$ flask db migrate -m "Setup"
$ flask db upgrade
$ python3 tools_create-admin.py # to create yourself an account
$ python3 run.py

It can be ran under gunicorn, just install it and make a basic wsgi.py file in the root of the project that looks like:

from app import create_app

app = create_app()

then run it like: gunicorn --bind 0:0:0:0 wsgi:app

And if you then want to run it under systemd, here's an example unit file for you:

[Unit]
Description=Gunicorn instance to serve Flask weeboard app
After=network.target

[Service]
User=your_user
Group=your_group
WorkingDirectory=/home/your_user/weeboard
ExecStart=/home/path/to/your/venv/bin/gunicorn --workers 3 --bind 0.0.0.0:5000 wsgi:app

Restart=always
RestartSec=3
KillMode=mixed

[Install]
WantedBy=multi-user.target

purpose

idk lol

todo

dockerfile is a bit barebones

make it production ready

maybe split up the routes as they're ugly

unhardcode some secrets (there's none in the source, but when it's running there's some, or maybe there is, idk)

clean up cruft

learn how to code lol lmao