Skip to content

linktimecloud/kdp-catalog-manager

Repository files navigation

License Tests Build image version image size

KDP Catalog Manager

English | 简体中文

Project Description

Project Overview

KDP Catalog Manager is a big data application management platform. It categorizes and manages applications based on their functionalities, reducing the complexity of application management and allowing big data administrators to focus more on data processing.

Core Technical Architecture

kdp-catalog-manager

Functional Module Description

api

  • view
    Defines Restful APIs and performs basic validation on user input parameters and output results.

Domain

  • service
    Business logic.

  • format
    Data conversion layer, used for transforming data between cached data and business data.

  • model
    Data model entities.

Modules
  • cache
    Data storage layer, where static data is stored in the cache.

  • requests
    External data invocation, used to call external services to retrieve data.

Directory Structure

├── CODEOWNERS
├── README.md
└── kdp_catalog_manager
   ├── api
   ├── common
   ├── config
   ├── main.py             # 服务启动程序
   ├── requirements.txt
   ├── test_main.py
   ├── domain
   ├── modules
   └── utils

Startup Procedure

Development Environment Setup

  • Requires Python3.10+
  1. Clone the code to your local machine.
git clone xxx && cd kdp-catalog-manager
  1. Set up a virtual environment:
#Install virtualenv
pip install virtualenv
virtualenv -p /usr/local/bin/python3 venv
# Activate the virtual environment:
source ./venv/bin/activate

# Deactivate the virtual environment:
deactivate
  1. Install dependencies:
pip install -r docker/python/requirements.txt
  1. Start the service:
cd ~/kdp-catalog-manager \
&& export PYTHONPATH=$PYTHONPATH:$(pwd)
python kdp_catalog_manager/main.py

API Manual