This repository provides a template for building microservices using Go and Echo, with Docker support for easy containerization and deployment. It includes PostgreSQL for database management and Redis for caching, making it a comprehensive solution for developing scalable and maintainable microservices.
- Go: Statically typed, compiled programming language designed for simplicity and efficiency.
- Docker: Containerization for consistent environments across different stages of development and deployment.
- Echo: Lightweight web framework for building RESTful APIs.
- Redis: In-memory data structure store, used as a database, cache, and message broker.
- PostgreSQL: Reliable and powerful open-source relational database.
- Go (version 1.18 or later)
- Docker (for containerization)
- Docker Compose (optional, for managing multi-container Docker applications)
- PostgreSQL (for local development)
- Redis (for local development)
Make sure you have goose installed on your computer
go install github.com/pressly/goose/v3/cmd/goose@latest
git clone https://github.com/Teyz/go-svc-template.git
Update environments variables in docker-compose.yml
docker compose up