This is a simple web application using Python Flask and MySQL database.
Functions of the web application are:
- Login
- Sign Up
- Post Thread
- View Threads
- Edit Thread
- Delete Thread
Below are the steps required to get this working on a base linux system.
- Install all required dependencies
- Install and Configure Web Server
- Start Web Server
Python and its dependencies
apt-get install -y python python-setuptools python-dev build-essential python-pip python-mysqldb
Install The Required Flask Dependencies using pip.
pip install flask
pip install flaskext.mysql
pip install functools
- Copy app.py or download it from source repository
- Configure database credentials and parameters
Start web server
FLASK_APP=app.py flask run --host=0.0.0.0
Open a browser and go to URL
http://<IP>:5000
http://<IP>:5000/