Chat server

Chat server with go clean arch

Libraries

  • echo server
  • ORM: gorm
  • Docs: swagger
  • testing: mockery
  • Socket: gorilla socket

Commands

Swag

# swag (Threre is an issue finding gorm.Model dependency)
swag init --parseDependency --parseInternal

# connect http://localhost:8000/swagger/index.html

Mockery

# Create all of mocks (If i comment with mockery)
go generate ./...

DB

# TODO: migration manager(HOW TO?)
go run cli/migration.go

TO DO

  • Add middleware tests
  • Make some class for Exception and DTO