Skip to content

qzorg/flaskchan

Repository files navigation

Imageboard Software written in Flask. Designed to have very little JS, and should be able to operate with none at all. Created by qzo, find him on IRC somewhere, probably Rizon. GPL-3.0+

Creating a Dev Environment

On your OS

  1. Install the dependancies for your distro
  • sudo apt-get install libjpeg-dev zlib1g-dev python python-dev python-pip libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

  • sudo yum install python python-devel python-pip libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel

  • apk add python py-pip python-dev gcc git libffi-dev linux-header musl-dev zlib-dev libjpeg-turbo-dev

  1. pip install -r requirements.txt
  2. Edit config.py with your variables before you continue.
  3. On the first run, you will be prompted with a panel to configure the primary user.
  4. python app.py

In a docker image

  1. docker build -t flaskchan-image .
  2. docker run -d -p 5000:5000 flaskchan-image wowee that is simple

Deploying on Apache wsgi

  1. apt-get install git apache2 libapache2-mod-wsgi libjpeg-dev zlib1g-dev python python-dev python-pip libffi-dev
  2. cd /var/www/ && git clone https://github.com/qzorg/flaskchan.git
  3. Modify the Deploy/app.wsgi file to fit your needs, then copy it to your $SITEROOT/flaskchan/.
  4. Edit the Deploy/devchan.conf and replace all lines that start with $ with your own information. Copy the devchan.conf file to your /etc/apache2/sites-enabled/.
  5. pip install -r requirements.txt.
  6. Edit config.py to include direct paths to directories such as static/images/, static/thumbs, and the sqlite database.
  7. Perform steps 3 and 4 from "Creating a Dev Environment."
  8. service apache2 reload.

About

A lightweight ready to deploy image board written in Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •