Overview
Overview architecture of TinhTinh
Last updated
Overview architecture of TinhTinh
Last updated
TinhTinh following modular architecture, with each module incluse components:
Controllers (as Router): for registry router to handler http
Providers: Instance with name only available in module have registered.
Middlewares: common middleware will apply for all controller in module.
First of all, download and install Go 1.22
or higher is required.
Init your go module:
Installation is done use the go get command:
Install cli to easy to init project.
After then
The structure folder will be in:
Here's a brief overview of those core files:
app_controller.go
: A basic controller with a simple route.
app_service.go
: A basic service with crud method.
app_module.go
: The root module of the application.
main.go
: the entry file of the application which uses the core function `CreateFactory` to create a application instance.