msgo

command module
v0.0.0-...-991c831 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 12 Imported by: 0

README

MSGO - Microservices in Go

Hexagonal Architecture (Ports & Adapter)

Wiki: Hexagonal Architecture

Architecture benefits:
  • loosely coupled
  • interchangeable core application, UI, data objects, test
  • testable
  • flexible (e.g: can change database easily MySQL to MongoDB or any Database)

It might not be suitable for small application.

More information about this here

How to run ?

Go Forked and clone this project and cd inside msgo.

mv ./config/sample.conf.yaml ./config/conf.yaml

go run .

Run test ?

testing state

go test -v ./dto

testing route

go test -v ./controller

testing services

go test -v ./service

test all with one liners

go test --v ./service ./controller ./dto

With Docker ?

Note: If you have mysql already running you can turn it off: systemctl stop mysql

docker-compose up --build

or

docker-compose up

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL