Skip to content

The service helps in creating a user with e-wallet with some default balance, send money to other users, add money to the wallet, maintain transaction details and send an email notification whenever a transaction happens.

License

Notifications You must be signed in to change notification settings

sanjay035/E-Wallet-Service

Repository files navigation

E-Wallet-Service:

The service helps in creating a user with e-wallet with some default balance, add money to the wallet, send money to other users, maintain transaction details and send an email notification whenever a transaction happens.

Prerequisites:

  • Java 1.8 or above
  • Kafka server
  • Redis server
  • MySQL server

Installation:

  • Clone this repo:
> gh repo clone sanjay235/E-Wallet-Service
> cd E-Wallet-Service
  • Install Maven, MySQL(any Database of your choice), IntelliJ(any IDE of your choice).
  • Update the dependencies given in the pom.xml using Maven.
  • Run the Zookeeper, Kafka server and Redis server.
  • Run each of the individual services(User, Wallet, Transaction, Notification) as spring boot application in the IDE.

Sample API end points:

Create user will automatically create an e-wallet,
End point = localhost:7000/user
HTTP method = POST
JSON body = {
    "userId": "sanjay",
    "emailId": "[email protected]",
    "name": "Sanjay",
    "age": 24
}
Get user details with given userId,
End point = localhost:7000/user?userId=Sanjay123
HTTP method = GET
Add money to the user's wallet,
End point = localhost:5000/add-money
HTTP method = PUT
JSON body = {
    "receiver": "sanjay",
    "amount": 35
}
Send money to other user's wallet,
End point = localhost:5000/send-money
HTTP method = PUT
JSON body = {
    "sender": "sanjay",
    "receiver": "pavan",
    "amount": 35,
    "purpose": "This is a festiv gift!"
}

Contribute:

  • Feel free to fork, add a star and share if you like it.
  • Corrections & Contributions are always welcome! 😃

About

The service helps in creating a user with e-wallet with some default balance, send money to other users, add money to the wallet, maintain transaction details and send an email notification whenever a transaction happens.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages