MKAbdElrahman / project-structure

My Starter Code For Go Applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Architecture

The application is divided up into multiple packages, each with its own purpose.

  • api - Entry Point, Wiring
  • handler - HTTP handlers.
  • services - Services used by the handlers.
  • db - Database access code
  • component - templ components.
graph 
    handler[HTTP handler] -- uses --> services[Services]
    services -- use --> db[Database access code]
    db -- uses --> postgresdb[(PostgresDB)]
    handler -- renders --> components[Components]
Loading

Infrastructure

Task

Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.

TEMPL

Create components that render fragments of HTML and compose them to create screens, pages, documents, or apps.

Migrate

Database migrations.

About

My Starter Code For Go Applications


Languages

Language:CSS 95.6%Language:Go 4.4%