Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caknoooo/compfest-movie-ticketing-be
Build API for ticketing movie in event compfest Indonesian
https://github.com/caknoooo/compfest-movie-ticketing-be
clean-architecture gin gorm-orm movies-api restful-api ticketing-system
Last synced: 17 days ago
JSON representation
Build API for ticketing movie in event compfest Indonesian
- Host: GitHub
- URL: https://github.com/caknoooo/compfest-movie-ticketing-be
- Owner: Caknoooo
- License: mit
- Created: 2023-07-05T13:22:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-15T05:44:32.000Z (over 1 year ago)
- Last Synced: 2024-10-23T12:41:27.595Z (2 months ago)
- Topics: clean-architecture, gin, gorm-orm, movies-api, restful-api, ticketing-system
- Language: Go
- Homepage: https://compfest-movie-ticketing-be.vercel.app
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang Clean Architecture
## Introduction 👋
> Clean Architecture is an approach to organizing code in an application that focuses on separating responsibilities and dependencies between components. In the context of Golang, Clean Architecture refers to the application of Clean Architecture principles in developing applications using the Go programming language.Clean Architecture proposes a structured application design with several layers that have clear and isolated responsibilities. Each layer has a specific role and boundaries. Here are some common layers in Golang Clean Architecture
## Layers 🔥
- **Domain Layer:** This layer contains the core business definitions of the application. It is the innermost layer and does not depend on any other layers. It includes entities, business rules, and repository interfaces that will be implemented in the infrastructure layer.
- **Use Case Layer:** This layer holds the business logic specific to use cases in the application. Use cases provide operations and interactions between entities in the domain layer. Use cases do not depend on implementation details in the infrastructure layer.
- **Delivery Layer:** This layer is responsible for receiving and delivering data to and from the application. It typically consists of APIs, controllers, and presenters. This layer acts as the interface to interact with the outside world and can take input from users or deliver output to users.
- **Repository Layer:** This layer is responsible for implementing the repository interfaces defined in the domain layer. Repositories are used to access and store data from the storage (database, cache, APIs, etc.). This layer serves as a bridge between the domain layer and the infrastructure layer.
- **Infrastructure Layer:** This layer contains the technical details and implementation of the technologies used in the application, such as databases, networking, data storage, and external APIs. This layer depends on other layers and is used to implement the technical components required by the application.## How To Use?