go-clean-architecture
Simple API for banking routines using a Clean Architecture in Golang :credit_card: :moneybag: :money_with_wings:
File Explorer
Download Latest Version (.zip)- ci.yml
- init.js
- init.sql
- create_account.go
- create_account_test.go
- create_transfer.go
- create_transfer_test.go
- find_account_balance.go
- find_account_balance_test.go
- find_all_account.go
- find_all_account_test.go
- find_all_transfer.go
- find_all_transfer_test.go
- health_check.go
- health_check_test.go
- error.go
- info.go
- logger.go
- error.go
- success.go
- logger.go
- create_account.go
- create_account_test.go
- create_transfer.go
- create_transfer_test.go
- find_account_balance.go
- find_account_balance_test.go
- find_all_account.go
- find_all_account_test.go
- find_all_transfer.go
- find_all_transfer_test.go
- account_mongodb.go
- account_postgres.go
- nosql.go
- sql.go
- transfer_mongodb.go
- transfer_postgres.go
- validator.go
- account.go
- account_test.go
- money.go
- transfer.go
- uuid.go
- config.go
- factory_nosql.go
- factory_sql.go
- mongo_handler.go
- mongo_handler_deprecated.go
- postgres_handler.go
- factory.go
- logger_mock.go
- logrus.go
- zap.go
- factory.go
- gin.go
- gorilla_mux.go
- factory.go
- go_playground.go
- http_server.go
- create_account.go
- create_account_test.go
- create_transfer.go
- create_transfer_test.go
- find_account_balance.go
- find_account_balance_test.go
- find_all_account.go
- find_all_account_test.go
- find_all_transfer.go
- find_all_transfer_test.go
- .dockerignore
- .env.example
- .gitignore
- .travis.yml
- clean.png
- create_account.png
- docker-compose.yml
- Dockerfile
- go.mod
- go.sum
- LICENSE
- main.go
- Makefile
- README.md
# Installation Guide
git clone https://github.com/GSabadini/go-clean-architecture
Downloads the entire project code from GitHub to your computer.
cd go-clean-architecture
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
3. Go
Mediumgo build ./...
Compiles the Go program into an executable.
go run .
Runs the Go program directly without a separate build step.
4. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make init
Compiles the code based on the generated build configuration to produce an executable.
make up
Compiles the code based on the generated build configuration to produce an executable.
make test
Compiles the code based on the generated build configuration to produce an executable.
make test-local
Compiles the code based on the generated build configuration to produce an executable.
make test-report
Compiles the code based on the generated build configuration to produce an executable.
Pulled directly from this repo's README.
