Skip to content

Latest commit

 

History

History
89 lines (47 loc) · 1.81 KB

readme.md

File metadata and controls

89 lines (47 loc) · 1.81 KB

This is a project for a money transfer API built using Golang and Nodejs + Servelles framework + AWS Lambda. The API allows for transferring money between accounts and also includes the ability to cancel transfers. It also uses RabbitMQ for message queuing.

Author

This project was authored by LuisMarchio03. Their Github profile can be found at https://github.com/LuisMarchio03/.

Features

The following functionality has been implemented:

[X] TransferService -> consumer rabbitMQ

[X] TransferService -> cancelamento de transferências

[X] TransferService -> cancelamento usecase

[X] TransferService -> handlers

[x] TransferService -> remove mockUser

[x] TransferService -> Find User

[x] TransferService / WalletService -> Criar um User ID Compartilhado

[x] TransferService -> producer update user to WalletService

[x] WalletService -> consumer rabbitMQ

[] SendMessageService -> Create service to send message

[] All -> Variables to .env

Installation

Clone the repository:

git clone https://github.com/LuisMarchio03/MoneyTransferApi.git

Navigate to the project directory:

cd MoneyTransferApi

Install the dependencies:

cd transferService
go  mod tidy

cd walletService
npm install

cd gateway
npm install

Run the project:

cd gateway
npm run dev

The server will be running at http://localhost:8080.

Usage

The following endpoints are available:

  • `POST /transfer: transfer money from one account to another. Requires

  • `from_account_id, to_account_id, and amount in the request body.

  • `POST /transfer/cancel: cancel a transfer. Requires transfer_id in the request body.

License

This project is licensed under the MIT License - see the LICENSE file for details.