@Gustavo Gustavo authored on 17 Jan
static basename option 8 months ago
uploads complete function to remove unactive threads 1 year ago
views implement basename also in forms, redirects and routes 8 months ago
.gitignore default config file 8 months ago
LICENSE Initial commit 1 year ago
README.md default config file 8 months ago
backend.py f strings 8 months ago
default.conf default config file 8 months ago
models.py db name and create db if not exist 8 months ago
requirements.txt Implement peewee 10 months ago
utils.py implement basename also in forms, redirects and routes 8 months ago
README.md

Imageboard

Screenshot

Features

  • Simple markdown: bold (*), italic () and underline (__)
  • Green (>) and Pink (<) text
  • Quick replies
  • Reply previews
  • Mod and Admin functions
  • Youtube embeds
  • Mobile responsive design (through CSS media queries)

Dependencies

  • bottle: Web framework.
  • filetype: To make sure people upload valid files.
  • Pillow: To create thumbnails and get image dimensions.
  • waitress: Production server.
  • peewee: SQL ORM.

Guide

  1. Clone the repository and access the folder:

$ git clone https://github.com/gnstaxo/imageboard.git

$ cd imageboard

  1. Get the dependencies

$ pip install -r requirements.txt

  1. Rename or copy the default configuration file, modify it to your liking

$ cp default.conf imageboard.conf

  1. Run the app

$ python backend.py

Admin dashboard is at /admin for which you'll first have to go through /login.

Notes

  • The function to limit the size of uploads only works in production mode.
  • To use a MySQL database install pymysql, and psycopg2 for Postgresql.