This repository contains an sample project using Google Wire for dependency injection in Go.
These instructions will help you set up and run the project on your local machine.
- Go 1.16 or higher
- Docker and Docker compose
-
Clone the repository:
git clone https://github.com/susilnem/golang-wire.git cd golang-wire
-
Create env file and update the database
cp .env.sample .env
-
Setup
$ docker-compose build $ docker-compose up
DB_HOST=db
DB_NAME=postgres
DB_USER=postgres
DB_PORT=5432
DB_PASSWORD=postgres