https://github.com/9ssi7/go-micro-template
This is a template for a microservice written in Go.
https://github.com/9ssi7/go-micro-template
documentation golang microservices-architecture template
Last synced: over 1 year ago
JSON representation
This is a template for a microservice written in Go.
- Host: GitHub
- URL: https://github.com/9ssi7/go-micro-template
- Owner: 9ssi7
- License: mit
- Archived: true
- Created: 2022-09-24T13:20:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-24T16:06:35.000Z (almost 4 years ago)
- Last Synced: 2025-03-01T23:56:39.777Z (over 1 year ago)
- Topics: documentation, golang, microservices-architecture, template
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Micro Template
This is a template for a microservice written in Go.
## Overview
You can start your microservice applications that you will develop with Go without any architectural concerns. This template is for illustrative purposes only. Technologies used may vary. This template has been developed in a way that does not hinder most Technologies.
## Project Structure
```
📦microservice-app
┣ 📂src
┃ ┣ 📂app
┃ ┃ ┗ 📜app.go
┃ ┣ 📂config
┃ ┃ ┗ 📜config.go
┃ ┣ 📂dto
┃ ┃ ┣ 📜some_create.go
┃ ┃ ┣ 📜some_created.go
┃ ┃ ┣ 📜some_find.go
┃ ┃ ┗ 📜some_found.go
┃ ┣ 📂entity
┃ ┃ ┗ 📜some.go
┃ ┣ 📂event
┃ ┃ ┣ 📜some_created.go
┃ ┃ ┗ 📜some_deleted.go
┃ ┃ ┗ 📜some_feature_created.go
┃ ┣ 📂event_handler
┃ ┃ ┣ 📜event_handler.go
┃ ┃ ┗ 📜some_feature_created.go
┃ ┣ 📂event_publisher
┃ ┃ ┣ 📜event_publisher.go
┃ ┃ ┣ 📜some_created.go
┃ ┃ ┗ 📜some_deleted.go
┃ ┣ 📂internal
┃ ┃ ┣ 📜api.go
┃ ┃ ┣ 📜handler.go
┃ ┃ ┣ 📜repo.go
┃ ┃ ┗ 📜service.go
┃ ┣ 📂locales
┃ ┃ ┣ 📜en.toml
┃ ┃ ┗ 📜tr.toml
┃ ┣ 📂mapper
┃ ┃ ┣ 📜mapper.go
┃ ┃ ┗ 📜some_mapper.go
┃ ┣ 📜app.env
┃ ┗ 📜main.go
┣ 📜.gitignore
┣ 📜Dockerfile
┣ 📜go.mod
┗ 📜go.sum
```
## Folder Descriptions
In this repository, there is a `README.md` file under each folder, and in this file, what the folder does is explained in detail. For example, [you may want to visit the `src` folder.](https://github.com/ssibrahimbas/go-micro-template/tree/main/src)
### License
[MIT](https://choosealicense.com/licenses/mit/)
### Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
### Authors
- [Sami Salih İbrahimbaş](https://github.com/ssibrahimbas)