Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the best directory structure for microservice projects #4254

Open
814704261 opened this issue Jul 18, 2024 · 0 comments
Open

What is the best directory structure for microservice projects #4254

814704261 opened this issue Jul 18, 2024 · 0 comments

Comments

@814704261
Copy link

I am a beginner learning go-zero. When creating a microservice project, I encountered a problem: how should the directory structure of the microservice project be organized? I carefully read the layout explanation on the official website. I tried to set up the directory structure as described on the official website. Below is my project directory:

example
├── internal
├── pkg
├── restful
 │       └── app
 │       └── admin
├── script
├── service
 │       └── user

I have two HTTP services, app and admin, and an RPC service user.

If I want to create a configuration file or utility package that both app and admin can use, how should I do it? Also, how can I quickly start all services instead of running go run . one by one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant