This project is a simple banking backend service implemented in Go. It allows users to perform basic banking operations such as depositing and withdrawing money from accounts.
- Create and manage accounts
- Deposit money into accounts
- Withdraw money from accounts
- Track transactions for each account
- golang 1.23
git clone git@github.com:lonmarsDev/banking-backend.git
cd banking-backend
on root project directory do
go run ./cmd/main.go
log will see like this
2024/08/31 01:14:32 INFO Starting server on :8383
Fist of all need to create account
curl --location --request POST 'http://localhost:8383/create-account' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "marlon pamisa"
}'
Deposit
curl --location --request POST 'http://localhost:8383/deposit' \
--header 'Content-Type: application/json' \
--data-raw '{
"id" : 1,
"amount" : 300
}'
Withdrawal
curl --location --request POST 'http://localhost:8383/withdraw' \
--header 'Content-Type: application/json' \
--data-raw '{
"id" : 1,
"amount" : 300
}'
View Balance
curl --location --request GET 'http://localhost:8383/view-balance?id=1'
Get SOA
curl --location --request GET 'http://localhost:8383/get-soa?id=1'
For more information, please contact marlonpamisa@gmail.com.