This repository is part of the EuroCC-Italy Data Lake Ready to Use codebase. The repositories in this codebase are:
The User Guide can be found in PDF form at this link.
- datalake_api (Main Folder): This is the primary directory for the API server. It contains all the necessary code and resources to run the datalake service.
- .env File: This file is crucial for setting up the environment. It defines essential environment variables, including paths and MongoDB specifications necessary for the API server's operation.
MONGO_HOST: The host where the MongoDB server is located. In this configuration, it's set tolocalhost, indicating that the MongoDB server is running on the same machine as the API server.MONGO_PORT: The port used to connect to the MongoDB server. The default MongoDB port is27017.MONGO_DB_NAME: The name of the MongoDB database that the API interacts with. In this context, it's nameddatalake.MONGO_COLLECTION_NAME: The name of the MongoDB collection within the specified database. Here, it's referred to asmetadata.LOCAL_FOLDER: The local file path to the folder containing data that the API operates on. It points to/home/centos/dtaas_test_api/COCO_datasetin this setup.
TEST_MONGO_HOST: Similar toMONGO_HOSTbut specifically configured for testing purposes.TEST_MONGO_PORT: Similar toMONGO_PORTbut specifically configured for testing purposes.TEST_MONGO_DB_NAME: Similar toMONGO_DB_NAMEbut specifically configured for testing purposes.TEST_MONGO_COLLECTION_NAME: Similar toMONGO_COLLECTION_NAMEbut specifically configured for testing purposes.TEST_LOCAL_FOLDER: Similar toLOCAL_FOLDERbut specifically configured for testing purposes.TEST_IMAGE_1andTEST_IMAGE_2: These variables represent the names of test image files used in the testing process.TEST_METADATA_CONTENT: A JSON array containing metadata information for testing. It includes an example entry with anidand apathpointing to a test image file.TEST_QUERY_FILE_CONTENT: A sample SQL query used for testing purposes. It retrieves data from a hypothetical table namedyour_table.TEST_PYTHON_FILE_CONTENT: A sample Python script used for testing purposes. It simply prints 'Hello, world!'TEST_CONFIG_JSON_CONTENT: A JSON object containing configuration settings. It includes bothconfig_serverandconfig_clientsections with various configuration options for the server and client components.