This project is a web API application that includes configurations, controllers, models, routes, schemas, utility scripts, and tests. The application is built using Python and follows a modular structure to ensure scalability and maintainability.
-
Install LAMP server:
sudo apt update && sudo apt upgrade -y && sudo apt autoremove sudo apt install tasksel sudo tasksel # Select "web server" sudo apt install php libapache2-mod-php sudo systemctl restart apache2
-
Install MySQL:
sudo apt install mysql-server
-
Install phpMyAdmin:
sudo apt install phpmyadmin
-
Build Database:
-
Clone the repository:
git clone https://github.com/YuCheng1122/threat_graph.git cd threat_graph
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Run the application:
python run.py
To run the tests, use:
pytest