Hub
Instructions for Starting the Project
To start the Hub, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/Toolf/hub.git
cd hub
- Create and activate a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install the project dependencies:
pip install -r requirements.txt
- Run the system:
python ./app/main.py
The system will start collecting data from the agent through MQTT and processing it.
Running Tests
To run tests for the project, use the following command:
python -m unittest discover tests
Common Commands
1. Saving Requirements
To save the project dependencies to the requirements.txt file:
pip freeze > requirements.txt