-
Notifications
You must be signed in to change notification settings - Fork 442
FEAT - Transaction Challenge Solution - Joshua Navarro #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
joshnavdev
wants to merge
32
commits into
yaperos:main
from
joshnavdev:feat/transaction-service-resolution
Closed
FEAT - Transaction Challenge Solution - Joshua Navarro #495
joshnavdev
wants to merge
32
commits into
yaperos:main
from
joshnavdev:feat/transaction-service-resolution
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add Config and Database Module - Add Create Transaction service - Add Get Transaction service
… anti-fraud-service
… transaction service
… transaction service
…service for transaction service
…or graphql-gateway
… its functionality
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Yape Code Challenge – Transaction Management with Anti-Fraud Validation
By Joshua Navarro
Hello Yape Team!
Descripción
This PR contains my implementation of the code challenge described in your repository. The solution is designed following microservices architecture using the
NestJSframework,Kafkafor event-driven communication,GraphQLas the API gateway, andPostgreSQLas the persistent storage. The entire project is built following Clean Architecture principles to ensure modularity, maintainability, and testability.Services Overview
This project consists of three main services:
Stack Technology
Microservices Documentation
Each service has its own README.md with further details:
graphql-gateway/README.mdtransaction-service/README.mdanti-fraud-service/README.mdHow to Run the Project
The easiest way to run everything is via Docker Compose. All dependencies and services spin up with a single command.
Note: If you do not have installed
dockerwithdocker-compose, please read this How to Install DockerOnce you have installed
docker-compose, clone this repository and go to the root directory of the project. Then, run the following command:Warning: Please make sure to have the port
5432,9092,3000and3005available to run this project without problems.Hot to Test the Project
After running the project, you can access the GraphQL playground at http://localhost:3005/graphql
Create Transaction Mutation
Sample variables:
{ "createTransactionInput": { "accountExternalIdDebit": "28dbd0c5-4ea0-4d05-8fd9-39e8f76aaf13", "accountExternalIdCredit": "d6cd54da-8ce3-4f79-abda-bd5be9b19e68", "transferTypeId": 1, "value": 1000 } }Get Transaction Query
Sample variables:
{ "transactionId": "28dbd0c5-4ea0-4d05-8fd9-39e8f76aaf13" }Scalability Notes (Optional Challenge)
To address high volume scenarios:
Let me know if you have any feedback.
Thanks for reviewing my submission!