Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

hktrib/simple_bank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zywa Initial Assignment -> a simple bank service

Project Structure

cmd/ for all publically exposed services

main.go, (api package) api/

internal/ for all private services that are references by public services

(db package) database/, (email package) email/, (pdf package) pdf/

API's supported

  • /addtransaction is for adding a single transaction record (user_email, date_of_transaction, amount) to the database.csv
  • /filtertransactions is for filtering the transactions based on (user_email, startDate, endDate) filtering.

API Calls in Action:

image image

How routes are wired on Golang!

image

Starting server

  • Clone the repo, and cd simple_bank/
  • Run go mod tidy to fetch dependencies
  • Run go build cmd/main.go to create a binary
  • Run ./main to start server

About

Zywa Initial Assignment -> a simple bank service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages