Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.56 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.56 KB

Golang - Microservice Template for scalable project

Overview

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.

Features

  • 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.

Prerequisites

  • 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)

Getting Started

Make sure you have goose installed on your computer

go install github.com/pressly/goose/v3/cmd/goose@latest

Clone the Repository

git clone https://github.com/Teyz/go-svc-template.git

Update environments variables

Update environments variables in docker-compose.yml

Run the project

docker compose up