Giter Club home page Giter Club logo

fee-calculation's Introduction

Fee Calculation

This project uses Docker Compose to manage an Apache Airflow environment with other dependent services like PostgreSQL, Redis, and a custom application (fee-app).

Project Structure

The project is structured around Docker and Docker Compose, with the following key services:

  • Apache Airflow (version 2.7.1)
  • PostgreSQL (version 13)
  • Redis (latest version)
  • Custom application (fee-app)
    • Spring Boot (version 3.1.3)
    • Java 17 as the target JVM
    • Kotlin (version 1.8.22)
    • H2 Database
    • Jackson Module for Kotlin

Unit Tests

The application includes unit tests to ensure code quality and correctness. The tests can be run using the following command: bash

./gradlew test

Airflow Workflows

The project uses Apache Airflow to manage complex tasks. You'll find the Airflow workflows, also known as directed acyclic graphs (DAGs), in the dags directory.

Currently, we have one workflow file, fees_workflow.py. This file controls a series of tasks related to fees processing.

Prerequisites

  • Docker and Docker Compose installed on your machine.
  • Basic understanding of Docker and Docker Compose.

Getting Started

  1. Clone the repository to your local machine.

  2. Navigate to the project directory.

  3. Build the Docker images:

docker-compose build
  1. Start the services:
docker-compose up

The Apache Airflow webserver will be accessible at localhost:8080, and the custom application (fee-app) will be accessible at localhost:8008.

Services

The Docker Compose file defines the following services:

  • fee-app: This is a custom application. It's built from the Dockerfile in the current directory.

  • postgres: This service uses the postgres:13 Docker image and serves as the database for the Airflow application.

  • redis: This service uses the latest Redis Docker image and serves as the message broker for Celery.

  • airflow-webserver, airflow-scheduler, airflow-worker, airflow-triggerer, and airflow-init: These services make up the Apache Airflow environment.

Note

The airflow-init service performs some initial setup tasks, such as checking the Airflow version and ensuring there's enough resources to run Airflow. Please make sure your machine meets the requirements specified in the docker-compose file.

fee-calculation's People

Contributors

mowagdy1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.