Skip to content

TomLafferty/CircusCircus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircusCircus

This is a minimal forum written in python with Flask. It supports only the bare minumum of features to allow discussions, including user accounts, threads, and comments.

On first run, the default subforums will be created. Although custom subforums are not supported through any user interface, it is possible to modify forum/setup.py to create custom subforums.

Features to Add

  • comments on each post (many comments to one post)
  • like/dislike/heart/etc emojis on posts
  • direct messages from one user to another
  • insert pix links and/or video links
  • a nice style based on Bootstrap
    • a logo on every page
    • copyright, about etc on footer of each page
  • user settings
  • public/private posts
    • public posts can be seen by people not logged in
    • private posts can only be seen by users logged in
  • posts can be plain text or markdown

Changes in 2020

I had to make a bunch of changes in this code to get it running. Took far longer than it should. But now, if I have it right, you need to clone this and then

This currently puts a sqlite3 db in the /tmp directory.

$ python3.9 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ ./run.sh

and it should appear on port 5000

http://0.0.0.0:5000

Changes in 2021

added heroku branch, and the postgres support.

NOTA BENE: DO NOT USE whatever as your database password. Pick something else.

CREATE USER ccuser WITH PASSWORD 'whatever';
ALTER ROLE ccuser SET client_encoding TO 'utf8';
ALTER ROLE ccuser SET default_transaction_isolation TO 'read committed';
ALTER ROLE ccuser SET timezone TO 'UTC';

CREATE DATABASE circuscircus;
GRANT ALL PRIVILEGES ON DATABASE circuscircus TO ccuser;

(Remember, this stuff is ALL done ot the postgres running on your DEV box, not the app on the internet at Heroku)

edit the forum.py file and switch dbs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.2%
  • HTML 32.8%
  • CSS 5.3%
  • JavaScript 1.5%
  • Shell 0.2%