{"id":16771779,"url":"https://github.com/devexps/go-layout","last_synced_at":"2026-01-03T13:09:22.446Z","repository":{"id":171887876,"uuid":"648046829","full_name":"devexps/go-layout","owner":"devexps","description":"Go-Micro Project Template","archived":false,"fork":false,"pushed_at":"2023-09-13T11:43:21.000Z","size":129,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T03:17:17.791Z","etag":null,"topics":["architecture","go-micro","golang","layout","microservices","project","service","template"],"latest_commit_sha":null,"homepage":"https://devexps.com/go-micro/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devexps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-01T05:08:25.000Z","updated_at":"2023-08-24T04:07:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5c9700a-0aba-4d33-a08b-370e0df07f3e","html_url":"https://github.com/devexps/go-layout","commit_stats":null,"previous_names":["devexps/go-layout"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexps%2Fgo-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexps%2Fgo-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexps%2Fgo-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexps%2Fgo-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devexps","download_url":"https://codeload.github.com/devexps/go-layout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243894178,"owners_count":20364978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["architecture","go-micro","golang","layout","microservices","project","service","template"],"created_at":"2024-10-13T06:29:08.969Z","updated_at":"2026-01-03T13:09:22.370Z","avatar_url":"https://github.com/devexps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-Micro Project Template\n\n## Install Micro\n```bash\ngo install github.com/devexps/go-micro/cmd/micro/v2@latest\n```\n\n## Create a project\n```bash\n# Create a template project\nmicro new my_project\n\n# Jump right in the `helloword` default service\ncd my_project/helloworld\n\n# Build and run the default service\nmake all\nmake run\n```\n\n## Create a service\n```bash\n# Move into your new project first\ncd my_project\n\n# Create a service\nmicro new my_service --service-only\n\n# Jump right in `my_service` service\ncd my_service\n\n# Build and run `my_service` service\nmake all\nmake run\n```\n\n## Docker\n```bash\n# build\ndocker build \\\n  -t go-layout/helloworld:0.1.0 \\\n  -f .docker/Dockerfile \\\n  --build-arg SERVICE_RELATIVE_PATH=helloworld \\\n  --build-arg GRPC_PORT=9090 \\\n  --build-arg HTTP_PORT=8080 \\\n  .\n\t\n# run\ndocker run --rm \\\n  -p 8080:8080 -p 9090:9090 \\\n  -v ${PWD}/helloworld/configs:/data/conf \\\n  go-layout/helloworld:0.1.0\n```\n\nYou can also use makefile in each services to build and run docker. It looks like:\n```bash\n# Move into your new service first\ncd my_project/my_service\n\n# build\nmake docker\n\n# run\nmake docker-run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevexps%2Fgo-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevexps%2Fgo-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevexps%2Fgo-layout/lists"}