Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B boilerplate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pavel Shustrov
  • boilerplate
  • Merge requests
  • !2

Develop clean architecture

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Md. Abu Farhad requested to merge develop-clean_architecture into main Apr 11, 2022
  • Overview 2
  • Commits 4
  • Pipelines 0
  • Changes 42

=================================== This architecture follows this way ==================================

This is the folder structure -

cmd => All command / CLI stuff will be implemented

http => In controller folder all individual controller layer will be implemented. And In container file all dependency injection will be given and all API routes starting from here. Server file for what framework (gin, mux, echo etc. ) will be implemented here.

infra => all app infrastructure tools (not devops tools) like db connection, error handling , logger etc. will be implemented in a separate folder here.

model => all domain model for database will be defined here.

repository => This is the repository layer for our app. db operation for individual will be implemented in a separate file.

scripts => This is for docker to run this script to create db schema name.

serializers => All request and response structure will be implement here in a individual file.

svc => This is the service layer for our app. All business logic will implement here in a individual file.

utils => This is the utils folder where all utils file will be generate folder wise.

  1. Here build this boilerplate following a clean architecture manner.
  2. Support docker.
  3. Gooes Migration.
  4. Not integrate New relic
  5. Not integrate testing but easy to integrate so it will be implement here.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-clean_architecture

For any queries, kindly contact us on Slack channel https://cafuglobal.slack.com/archives/C056RSXMPB7