Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/susilnem/golang-wire
Go-lang with Gin framework, Google Wire for dependency injection, GORM, Viper
https://github.com/susilnem/golang-wire
domain-driven-design gin go-lang go-wire golang googlewire gorm-orm postgresql viper
Last synced: 16 days ago
JSON representation
Go-lang with Gin framework, Google Wire for dependency injection, GORM, Viper
- Host: GitHub
- URL: https://github.com/susilnem/golang-wire
- Owner: susilnem
- License: apache-2.0
- Created: 2023-11-09T03:54:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-22T17:17:19.000Z (6 months ago)
- Last Synced: 2024-07-22T20:45:10.904Z (6 months ago)
- Topics: domain-driven-design, gin, go-lang, go-wire, golang, googlewire, gorm-orm, postgresql, viper
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- [Go](https://golang.org/dl/) 1.16 or higher
- [Docker and Docker compose](https://docs.docker.com/engine/install/)### Installation
1. Clone the repository:
```sh
git clone https://github.com/susilnem/golang-wire.git
cd golang-wire
```2. Create env file and update the database
```sh
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
```