Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 762 Bytes

File metadata and controls

39 lines (30 loc) · 762 Bytes

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