Skip to content

A forum app made with multiple Flask extensions

Notifications You must be signed in to change notification settings

cfierro/flask-forum

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-forum

A forum app with some basic forum stuff:

  • Authentication and session management
  • Create boards, threads, and posts
  • Write and edit posts in Markdown

Most of the forum code is contained in its own folder, and it's pretty easy to move it to other projects and use it as a blueprint or whatever else you have in mind. If you're new to Flask, this project is also a pretty good illustration of how to use a variety of common and especially useful extensions.

Extensions used

Setup

flask-forum uses bcrypt for password hashing. If you're using Ubuntu, you can install it with the necessary headers by running the following commands:

sudo apt-get install python-dev libffi-dev
sudo pip install bcrypt

The rest of the setup is more conventional:

pip install -r requirements.txt
python manage.py create_db
python manage.py create_user -e <email> -p <password>
python manage.py create_role -n admin
python manage.py add_role -u <email> -r admin
python runserver.py

By default the site is hosted at localhost:5000.

About

A forum app made with multiple Flask extensions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.4%
  • HTML 23.8%
  • CSS 4.8%