Skip to content

joisandresky/go-chi-clean-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Chi Clean Architecture Starter

This is a starter project for using Go Chi with Clean Architecture.

Getting Started

To get started with the project, please create .env file based on the .env.example. and setup a few depencies like postgres and redis.

How to Run

First, install necessary dependencies

go mod tidy

To run the project

go run cmd/main.go

To run with live reload make sure you have nodemon installed globally using npm install -g nodemon, and then run with:

make live

Database Migrations

for migrations we are using golang-migrate https://github.com/golang-migrate/migrate and please check Makefile to see available command to do Migrations. and dont forget to change postgresconn value with your database url.

To use as Project Starter

just please Find and replace github.com/joisandresky/go-chi-clean-starter with your project name (go modules).

Dependency Injection

(Update 5 November 2024) Now we are using https://github.com/google/wire for Dependency Injection. please check this file:

Run this to generate the wire.go file:

make wire

About

Go Chi Postgres Redis Starter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published