This is a simple bank project that allows users to manage their accounts and perform basic banking operations. The project is implemented in Go, using SQLC for database operations.
- Go
- PostgreSQL
- Docker
- SQLC
- Clone the repository:
git clone https://github.com/haziqkamel/go-simplebank.git
- Install Go dependencies:
go mod download
- Set up the PostgreSQL database using Docker:
make postgres
- Create the database:
make createdb
- Run database migrations:
make migrateup
- Generate SQLC code:
make sqlc
- mockgen
- mockegen/model
Then run command below:
mockgen -package mockdb -destination db/mock/store.go github.com/haziqkamel/simplebank/db/sqlc Store
For any inquiries or support, please contact us at [email protected].