Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akprasad/flask-forum
A forum app made with multiple Flask extensions
https://github.com/akprasad/flask-forum
Last synced: 30 days ago
JSON representation
A forum app made with multiple Flask extensions
- Host: GitHub
- URL: https://github.com/akprasad/flask-forum
- Owner: akprasad
- Created: 2013-07-11T18:15:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T06:45:28.000Z (over 2 years ago)
- Last Synced: 2024-08-04T01:27:54.596Z (4 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 59
- Watchers: 3
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
*(Note: I made this project as an experiment 7 years ago while I was learning Flask.
The code is entirely "as-is," and I don't intend to offer any support for it. Even
so, I hope you find it useful.)*License: MIT
# flask-forum
A forum app with some basic forum stuff:
- Authentication and session management
- Create boards, threads, and posts
- Write and edit posts in MarkdownMost 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
- [Flask-Admin](http://flask-admin.readthedocs.org/en/latest/) for database management
- [Flask-Assets](http://elsdoerfer.name/docs/flask-assets/) for asset management
- [Flask-DebugToolbar](http://flask-debugtoolbar.readthedocs.org/) for debugging and profiling.
- [Flask-Markdown](http://pythonhosted.org/Flask-Markdown/) for forum posts
- [Flask-Script](http://flask-script.readthedocs.org/en/latest/) for basic commands
- [Flask-Security](http://pythonhosted.org/Flask-Security/) for authentication
- [Flask-SQLAlchemy](http://pythonhosted.org/Flask-SQLAlchemy/) for database queries
- [Flask-WTF](http://pythonhosted.org/Flask-WTF/) for forms## Setup
flask-forum uses [bcrypt](https://github.com/dstufft/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 -p
python manage.py create_role -n admin
python manage.py add_role -u -r admin
python runserver.py
```By default the site is hosted at `localhost:5000`.