Skip to content

ThyMakra/gin-boilerplate-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

Prerequisite

  • Update the value of the environment variables in docker-compose.yaml.
  • Copy the file env.sample to a new file .env. Update the configuration to your need.

Development

  • Running the PostgreSQL container: make db-up
  • Build the Go binary and run: make run

How To Test

  • Ping: GET api/v1/auth/ping

    {
        "code": 200,
        "message": "User route is reachable",
        "data": null
    }

Project Structure

flowchart TD
    A(User Request)
    B[(PostgreSQL)]

    A --> |HTTP| a[Transport Layer]
    a --> |App business logic| b[Service Layer]
    b --> |Database communication| c[Repository]
    c --> B
Loading

About

Gin boilerplate for the bois

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published