Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 979 Bytes

README.md

File metadata and controls

77 lines (47 loc) · 979 Bytes

GoBank

A simple & secure bank API in Go

Dependencies

Infrastructure Setup (Makefile)

  • Create the gobank-network

    make network
  • Start postgres container:

    make postgres
  • Create simple_bank database:

    make createdb
  • Run db migration up all versions:

    make migrateup
  • Run db migration down all versions:

    make migratedown

Sqlc

  • Generate SQL CRUD with sqlc:

    make sqlc
  • Generate DB mock with gomock:

    make mock

How to run

  • Run server:

    make server
  • Run test:

    make test

License

MIT