MCPcopy Index your code
hub / github.com/ahmetildirim/morgan

github.com/ahmetildirim/morgan @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
152 symbols 313 edges 28 files 6 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

morgan-go

Morgan is a clean architecture example written in Go. It is a side project to learn Go and clean architecture.

How to run

Start Postgres

docker-compose up -d

Install Goose

go install github.com/pressly/goose/v3/cmd/goose@latest

Run migrations

goose -dir migrations postgres "user=postgres password=postgres dbname=morgan sslmode=disable host=localhost" up

Run the app

go run cmd/main.go

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Error
called by 26
internal/platform/response/response.go
Success
called by 7
internal/platform/response/response.go
UserIDFromContext
called by 6
internal/platform/reqctx/userid.go
AuthMiddleware
called by 3
internal/auth/middleware.go
String
called by 3
internal/auth/token.go
Exists
called by 3
internal/post/service.go
FindByEmail
called by 2
internal/user/service.go
NewFeed
called by 2
internal/feed/feed.go

Shape

Method 61
Struct 43
Function 33
Interface 14
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/post/service.go18 symbols
internal/post/handler.go13 symbols
internal/user/service.go11 symbols
internal/follow/service.go11 symbols
internal/user/handler.go8 symbols
internal/feed/service.go7 symbols
internal/feed/handler.go7 symbols
internal/auth/handler.go7 symbols
internal/post/repo.go6 symbols
internal/follow/handler.go6 symbols
internal/auth/service.go6 symbols
internal/user/user.go5 symbols

Datastores touched

morganDatabase · 1 repos

For agents

$ claude mcp add morgan \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact