susilnem / golang-wire

Go-lang with Gin framework, Google Wire for dependency injection, GORM, Viper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Wire

This repository contains an sample project using Google Wire for dependency injection in Go.

Getting Started

These instructions will help you set up and run the project on your local machine.

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/susilnem/golang-wire.git
    cd golang-wire
  2. Create env file and update the database

    cp .env.sample .env
  3. Setup

     $ docker-compose build
     $ docker-compose up
    

Setup Environment

DB_HOST=db
DB_NAME=postgres
DB_USER=postgres
DB_PORT=5432
DB_PASSWORD=postgres

About

Go-lang with Gin framework, Google Wire for dependency injection, GORM, Viper

License:Apache License 2.0


Languages

Language:Go 99.5%Language:Dockerfile 0.5%