Skip to content

A classic example of a secure REST API in Golang, PostgreSQL & Kubernetes

License

Notifications You must be signed in to change notification settings

sulemaanhamza/gobank

Repository files navigation

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

About

A classic example of a secure REST API in Golang, PostgreSQL & Kubernetes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published