Before running the project, make sure you have the following installed:
- Python (recommended Python 3.7 or higher)
- pip (Python's package manager)
Follow the steps below to set up the environment and install the necessary dependencies for the project.
-
Clone the repository to your local machine:
git clone https://github.com/QuantumBitBR/API_5SEM_ETL.git cd API_5SEM_ETL -
Environment Variables
Create a
.envfile in the root directory of your project and add the following environment variables:TAIGA_API_URL=https://api.taiga.io/api/v1 TAIGA_USERNAME=<username> TAIGA_PASSWORD=<password> DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_NAME=dbo DATABASE_USER=taiga DATABASE_PASSWORD=taiga
-
Create a virtual environment for the project (recommended):
For Windows:
python -m venv venv venv\Scripts\activate
For Linux/MacOS:
python3 -m venv venv source venv/bin/activate -
Install the dependencies for the project:
The project uses a
requirements.txtfile to list the necessary libraries.pip install -r requirements.txt
Once the dependencies are installed, you can run the project using the following command:
python3 main.pyTo run the tests, use the following command:
python3 -m unittest discover -s tests