CFG GROUP PROJECT (NANODEGREE – SOFTWARE STREAM)
The Wellness Web app intends to make your journaling experience more comfortable and easier, with the option for daily mood tracking and a link to external resources to help users manage their wellbeing. The web app is designed to store user log in details, so that their journal inputs would be kept secure and visible only to them. The users are given several journaling prompts, which encourage the user to dwell on their day, practice gratitude, bring clarity and awareness to their mental wellbeing state. Once the user has completed the journal, they can submit their answers. The Daily Wellness Progress Tracker can be found under the “Mood” page and it is designed for the user to answer several questions and once submitted, this will return the user’s overall mood for the day with a score, and it will return a graph of mood scores over a period of time. The Inspirational Quote of the Day returns a motivational quote and cat pictures from APIs. And the we app contains external resources for wellbeing which may be suggested for users based on their journalling input.
Requirements: Python 3.9+ MySQL 8.0+
Required packages:
mysql-connector
mysql-connector-python
matplotlib
flask
flask-sqlalchemy
flask-login
To install packages:
pip3 install mysql-connector
pip3 install mysql-connector-python
pip3 install matplotlib
pip3 install flask
pip3 install flask-sqlalchemy
pip3 install flask-login
To start:
- Open file
create_sql_script.sql
and paste and execute the code on your MySQLWorkbench - Go into
configs.py
file and insert your MySQLWorkbenchpassword
andusername
- Install the required packages as listed in the
“Required packages”
- The project folder
website
has to be recognised as a package due to the__init__.py
file - Run
main.py
and open the link. Then click the link that directs you to the website
https://drive.google.com/file/d/1a927a3v_eAf4gIdcbjK5BTD-0S4JVleG/view?usp=sharing