Frontend -
- React Native
- 4 fields to take input from user 2.1 Lender Name 2.2 Receiver Name 2.3 Date 2.5 Total Amount
- Submit Button that will call the POST call to backend 3.1 POST /transactions Body - { "lender_name": "mehul" "receiver_name": "gaurav" "amount": 100 "date": "19/06/2023" }
Backend -
- Backend will expose the above post api (R/D topic - try to figure out a way how we can expose an api from golang, there are multiple ways)
- Read the content of the body
- Save the content in the mysql database table
- Backend will connect with DB (R/D topic - try to figure out a way how a golang backend connect with mysql)
Daatabase-
- mysql database
- Table Transaction Content 2.1 Primary Key 2.2 LenderName 2.3 ReceiverName 2.4 Amount 2.5 Date