The app allows you register and log complaints.
A version of python
pip package manager installed
Local instance of MySQL running on localhost as user root
Set MySQL password as an environment variable as 'MYSQL_PWD'
Run queries.sql
pip install flask
pip install mysqlclient
pip install flask-mysqldb
pip install flask-WTF
pip install passlib
# Clone the repository
git clone https://github.com/KavishShah09/Issue-Logger.git
import os
DEBUG = True
TESTING = True
MYSQL_HOST = 'localhost'
MYSQL_USER = 'root'
MYSQL_PASSWORD = os.getenv('MYSQL_PWD')
MYSQL_DB = 'cms'
MYSQL_CURSORCLASS = 'DictCursor'
SECRET_KEY = 'your_secret_key'
Run
python app.y
Runs the app in the development mode.
Open http://localhost:5000 to view it in the browser.
Will be allowed only to submit complaints to the server via a form
Can view all complaints on a dashboard and can change the status or delete the complaint
To become an admin you must first sign up as a user and then in your local instance of MySQL run the following query:
UPDATE users SET role = 'admin' WHERE username = 'your_sign_up_username';