Hamed-bank
is a simple and efficient repository that demonstrates the implementation of gRPC in Golang with a PostgreSQL database. This project is designed with a clean and modular architecture, making it a great starting point for developers to build their own gRPC-based applications using Go and PostgreSQL.
- Well-structured and modular codebase.
- gRPC implementation for efficient communication between client and server.
- PostgreSQL integration for a robust and scalable database.
- Docker support for easy deployment and development.
- Comprehensive unit tests for enhanced reliability.
- Go 1.16 or later
- PostgreSQL 12 or later
- Docker 20.10 or later (optional)
- GNU Make 3.81 or later
-
Clone the repository:
git clone https://github.com/Hamedblue1381/hamed-bank cd hamed-bank
-
Install the required Go dependencies:
go mod download
-
Start the PostgreSQL database using Docker:
make postgres
-
Create the postgres database:
make createdb
-
Migrate up the database using go migration tool:
make migrateup
-
Run the gRPC server:
make server
This project is licensed under the MIT License - see the LICENSE file for details.