Skip to content

Teyz/go-svc-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published