Giter Club home page Giter Club logo

Comments (2)

bxcodec avatar bxcodec commented on May 10, 2024 3

I'll submit an example PR in the upcoming week *if not so busy LOL

from go-clean-arch.

bxcodec avatar bxcodec commented on May 10, 2024 1

Hi, sorry for the late reply. So busy lately

Thanks for using this proposed structured project.
I also face the same thing you had.

I'm still experimenting with a lot of structure for now.
But I'll list what possible way that I've done.

  • added new packages

    • pkg (for shared functions)
  • Another solution is, the one I've proposed for the internal project structure in my current company.
    I'm planning to submit this to be the new version of this project structure.

.
├── Dockerfile
├── Makefile
├── README.md
├── app
│   ├── cmd
│   │   ├── rest.go
│   │   └── root.go
│   ├── config
│   │   ├── app.go
│   │   ├── postgres.go
│   │   ├── root.go
│   │   ├── root_test.go
│   │   ├── server.go
│   │   └── server_test.go
│   └── main.go
├── deploy.Dockerfile
├── dev.Dockerfile
├── docker-compose.test.yaml
├── docker-compose.yaml
├── docs
│   └── openapi.yaml
├── ebus
│   ├── README.md
│   ├── ebus.go
│   ├── ebus_test.go
│   ├── rabbitmq
│   │   └── rabbitmq.go
│   └── sns
│       └── sns.go
├── errors.go
├── go.mod
├── go.sum
├── internal
│   ├── README.md
│   ├── graphql
│   │   └── README.md
│   ├── grpc
│   │   └── README.md
│   ├── mongo
│   │   └── README.md
│   ├── postgres
│   │   ├── README.md
│   │   ├── migration.go
│   │   ├── migrations
│   │   │   ├── 20191018113359_create_todo_table.down.sql
│   │   │   └── 20191018113359_create_todo_table.up.sql
│   │   ├── postgres_suite.go
│   │   ├── todo.go
│   │   ├── todo_test.go
│   │   ├── utils.go
│   │   └── utils_test.go
│   ├── rabbitmq
│   │   └── README.md
│   ├── redis
│   │   └── README.md
│   ├── rest
│   │   ├── README.md
│   │   ├── middleware
│   │   │   ├── context_timeout_injector.go
│   │   │   └── middleware.go
│   │   ├── todo.go
│   │   └── todo_test.go
│   ├── serviceyoudependon
│   │   └── README.md
│   ├── sns
│   │   └── README.md
│   ├── sqlx
│   │   ├── tx.go
│   │   └── tx_test.go
│   └── sqs
│       └── README.md
├── mock.Dockerfile
├── mocks
│   ├── ITodoRepository.go
│   ├── ITodoService.go
│   └── README.md
├── test.Dockerfile
├── todo
│   ├── service.go
│   └── service_test.go
└── todo.go

23 directories, 58 files

Let me know what do you think about this. Also if you have a better Idea, let's discuss it over here.

from go-clean-arch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.