simple_bank

module
v0.0.0-...-9c02020 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: MIT

README

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

Directories

Path Synopsis
cmd
api
internal
pdf

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL