This project is designed to demonstrate a comprehensive application utilizing Flask, Celery, and SQLAlchemy, among other technologies. It requires a MySQL database and is intended for educational and demonstration purposes.
- Python 3.8 or later
- MySQL Database
- MySQL Workbench (Recommended for database manipulation)
First, clone this repository to your local machine using Git:
git clone <repository-url>
cd Software-Engineering-ProjectRun the provided setup_env.sh script to create a virtual environment, activate it, and install the required Python packages:
./setup_env.shEnsure you have Python and pip installed on your system. Then, create a virtual environment and activate it:
# Windows
python -m venv .venv
.venv\Scripts\activate
# Linux
python3 -m venv .venv
source .venv/bin/activateInstall the required Python packages using pip:
pip install -r requirements.txt-
Ensure MySQL is installed and running on your system.
-
Open MySQL Workbench and connect to your MySQL server.
-
Create a new database named
sustainability_app_data:CREATE DATABASE sustainability_app_data;
-
Ensure the
adminuser exists and set the password toHanad2020@. If not, create the user and grant it permissions:CREATE USER 'admin'@'localhost' IDENTIFIED BY 'Hanad2020@'; GRANT ALL PRIVILEGES ON sustainability_app_data.* TO 'admin'@'localhost'; FLUSH PRIVILEGES;
Make sure the
adminuser has full read and write access to thesustainability_app_datadatabase.
To run the application, use the following command:
python3 app.pyThe application will start, and you can access it through your web browser.
Contributions to this project are welcome. Please ensure you follow the existing code style and submit your pull requests for review.
Thank you for participating in our project and stay tuned! more is coming!
::::::::