=================================== 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.
- Here build this boilerplate following a clean architecture manner.
- Support docker.
- Gooes Migration.
- Not integrate New relic
- Not integrate testing but easy to integrate so it will be implement here.