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/
- /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.
- Clone the repo, and
cd simple_bank/ - Run
go mod tidyto fetch dependencies - Run
go build cmd/main.goto create a binary - Run
./mainto start server