Paytel s.r.o. manufactures a system for peer-to-peer mobile payments, ie a fast mechanism for transferring money between mobile phones.Each participant has own mobile phone with a credit that they can use to pay to another participant.
- payment to another participant
The payer sends to the other telephone number any amount and the purpose of the payment. The sender and the date and time of payment are recorded - credit charging
The participant's credit can be charged with credit from the external system. The date-time, the amount and the location where the credit was charged are recorded. - suspicious payments
The payment is suspicious if it is over 5000 euros. Record such payments immediately in a convenient manner so that in the future it is easy to make a notification via SMS, e-mail, etc. Count on the fact that monitoring suspicious payments is independent of the actual delivery of money.
- JDK 15
- Lombok
- Spring Data MongoDB
- Spring for RabbitMQ
In Intellij IDEA Ultimate Edition:
- Clone repo
- File -> New -> Project from Version Control
- URL: https://github.com/DexLuthor/kopr-rabbit-distributed.git
- Clone
- Let Maven download all necessary dependencies
- Press
Double Shift
-> Reload All Maven Projects
- Press
- Run Configurations
- Run -> Edit configurations
- Button 'plus' (add new configuration)
- Spring Boot
- Main class:
com.github.dexluthor.RabbitConsumerApplication
- In the 'override parameters' section add parameter: name - 'phoneNumber', value - any you want
- Apply