module
Version:
v0.0.0-...-9c02020
Opens a new window with list of versions in this module.
Published: Dec 12, 2023
License: MIT
Opens a new window with license information.
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:
How routes are wired on Golang!
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
¶
|
|
|
|
internal
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.