{"id":50783232,"url":"https://github.com/tmph2003/doantotnghiep","last_synced_at":"2026-06-12T05:03:10.450Z","repository":{"id":265421992,"uuid":"892515791","full_name":"tmph2003/DoAnTotNghiep","owner":"tmph2003","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-15T19:33:26.000Z","size":3989,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2024-12-15T20:28:26.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmph2003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T09:04:01.000Z","updated_at":"2024-12-15T19:32:20.000Z","dependencies_parsed_at":"2024-11-29T10:42:32.223Z","dependency_job_id":null,"html_url":"https://github.com/tmph2003/DoAnTotNghiep","commit_stats":null,"previous_names":["tmph2003/doantotnghiep"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tmph2003/DoAnTotNghiep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmph2003%2FDoAnTotNghiep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmph2003%2FDoAnTotNghiep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmph2003%2FDoAnTotNghiep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmph2003%2FDoAnTotNghiep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmph2003","download_url":"https://codeload.github.com/tmph2003/DoAnTotNghiep/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmph2003%2FDoAnTotNghiep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34229626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-12T05:03:09.225Z","updated_at":"2026-06-12T05:03:10.420Z","avatar_url":"https://github.com/tmph2003.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trading Data Warehouse Project\n\nProject to run pipeline by following this flow:\n\n![Flow](./assets/architecture.png)\n\n**[Document](https://drive.google.com/drive/folders/1PUfJYkZRChRdH8OuSIaEAhrGeqAbqmQU?usp=drive_link)**\n\n- [Trading Data Warehouse Project](#trading-data-warehouse-project)\n  - [Prerequisites](#prerequisites)\n  - [Setup](#setup)\n  - [Infrastructure](#infrastructure)\n    - [Notes:](#notes)\n\nFolder structure:\n\n```bash\n├── containers                  # Extra for build image\n├── docker-compose.yaml         # Orchestrate Airflow, Trino, ... services\n├── dags                        # Contains Airflow DAG\n├── include                     # Các folder/file để import vào trong DAG\n├── plugins                     # Python custom module\n├── logs                        # For Airflow save logs\n├── requirements.txt            # Contains Python libraby\n├── README.md                   # Repo document\n└── assets                      # Assets for README.md\n```\n\n## Prerequisites\n\n* [Docker](https://docs.docker.com/engine/install/)\n* [Docker Compose](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04)\n\n## Setup\n\nIn order to run the project you'll need to install the following:\n \n1. [git version \u003e= 2.37.1](https://github.com/git-guides/install-git)\n2. [Docker version \u003e= 20.10.17](https://docs.docker.com/engine/install/) and [Docker compose v2 version \u003e= v2.10.2](https://docs.docker.com/compose/#compose-v2-and-the-new-docker-compose-command).\n\n**Windows users**: please setup WSL and a local Ubuntu Virtual machine following **[the instructions here](https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview)**. Install the above prerequisites on your ubuntu terminal; if you have trouble installing docker, follow **[the steps here](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04#step-1-installing-docker)** (only Step 1 is necessary). Please install the **make** command with `sudo apt install make -y` (if its not already present). \n\nAll the commands shown below are to be run via the terminal (use the Ubuntu terminal for WSL users). The `make` commands in this repo should be run in the `sapp-lark` folder. We will use docker to set up our containers. Clone and move into the lab repository, as shown below.\n\n```bash\ngit clone https://gitlab.sapp.edu.vn/data-warehouse/sapp-lark.git\ncd sapp-lark\n# Grant permission For Airflow wrire and store logs\n```\n\n![Airflow](./assets/airflow.png)\n\n## Infrastructure \n\nWe have three major services that run together, they are:\n\n1. **Postgres database**: We use a postgres database to act as metadata database for Airflow services.\n2. **Redis databaser**: We create a redis database to act as broker message queue for `airflow-scheduler`.\n3. **Airflow services**: There are 3 main services (`airflow-webserver`, `airflow-scheduler` and `airflow-worker`) and some of additional services (`airflow-init`, `airflow-triggered` and `airflow-log-groomer`). You can read this [document](https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/overview.html) to more understand Airflow.\n\n![Infra](./assets/architecture.png)\n\n### Notes:\n[1] How to create bot in Telegram: [link](https://stackoverflow.com/questions/31197659/how-to-send-request-to-telegram-bot-api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmph2003%2Fdoantotnghiep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmph2003%2Fdoantotnghiep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmph2003%2Fdoantotnghiep/lists"}