8000 GitHub - dzisiukluciano/account-mgmt
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dzisiukluciano/account-mgmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

account-mgmt

account-mgmt is made up of an account transactions UI and and Rest API.

Prerequisites

  • docker compose
  • node 12
  • go 13

Run

docker-compose up --build or you can eventually run each application

  • account-mgmt-front: npm run local
  • account-mgmt-front: go run main.go

Use it

UI runs at http://localhost:8080

API reference

Get account balance

curl --location --request GET 'http://localhost:3000/api/account-mgmt/account/balance' \
--header 'Content-Type: application/json'

List account transactions

curl --location --request GET 'http://localhost:3000/api/account-mgmt/account/transactions' \
--header 'Content-Type: application/json' 

Get transaction by id

curl --location --request GET 'http://localhost:3000/api/account-mgmt/account/transaction/:id' \
--header 'Content-Type: application/json' \

Save a transaction

curl --location --request POST 'http://localhost:3000/api/account-mgmt/account/transaction' \
--header 'Content-Type: application/json' \
--data-raw '{
	"type": "credit|debit",
	"amount": 5000
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0