/go-clean-example

Primary LanguageGoMIT LicenseMIT

Simple golang CLEAN architecture implementation

Go Report Card

Prerequisites


NOTE!

On MAC M1/Intel chip requires brew and GNU MAKE upgrade

Brew install if not installed already

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

GNU make upgrade

brew install make
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH" # Add to .bashrc or .zshrc
make -version # Should be higher then 3.8.1

List targets and help

make help

Run vendor

make vendor

Run linter locally

make lint

Run server locally

make run

Cleanup

make cleanup

Endpoints:

server - http://localhost:8000

Auth: Header: X-Api-Key test

redis-commander - http://localhost:8903

mongo-express - http://localhost:8905