Code Monkey home page Code Monkey logo

marlow-test-assignment's Introduction

Deploy

Requirements:

  • JDK 17
  • Docker, Docker Compose

Run ./deploy.sh file in this directory. Sample user with ID 72a0cfd0-8f38-4939-8100-72332f65b91f and balance 100 will be created in the system.

Atm-service Swagger docs will be available at http://localhost:8081/swagger-ui/index.html.

Exposed ports:

  • atm-service: 8081
  • postgresql: 15432
  • kafka: 9092

Run tests:

  • ./atm-service/gradlew clean test -p ./atm-service
  • ./audit-service/gradlew clean test -p ./audit-service

atm-service:

API for letting users withdraw and deposit money.

Env variables:

Name Description
JDBC_URL URL to connect to DB
JDBC_USERNAME Username to access DB
JDBC_PASSWORD Password to access DB
KAFKA_BOOTSTRAP_SERVERS Host and port to establish initial connection to the Kafka
NOTIFICATION_TRANSACTION_ADDED_TOPIC Topic name for transaction added events
NOTIFICATION_BATCH_SIZE How many events to send to the topic in scheduled task
NOTIFICATION_SEND_CRON How often send events to the topic

Example values for environment variables can be found in docker-compose.yml file.

audit-service:

Service for preserving history about user transactions.

Env variables:

Name Description
JDBC_URL URL to connect to DB
JDBC_USERNAME Username to access DB
JDBC_PASSWORD Password to access DB
KAFKA_BOOTSTRAP_SERVERS Host and port to establish initial connection to the Kafka
SERVICE_ACCOUNT_TRANSACTION_ADDED_TOPIC Topic name for transaction added events

Example values for environment variables can be found in docker-compose.yml file.

marlow-test-assignment's People

Contributors

neetkee avatar

Watchers

 avatar  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.