go_server

module
v0.0.0-...-1078877 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2025 License: MIT

README ¶

Projeto de Servidor em Go com Clean Architecture

Este projeto é um exemplo de servidor em Go seguindo as melhores prÔticas de Clean Architecture, CI/CD e Git. Ele inclui funcionalidades de autenticação e CRUD de usuÔrios, utilizando PostgreSQL como banco de dados.

šŸš€ ComeƧando

PrƩ-requisitos
  • Go 1.24 ou superior
  • PostgreSQL
  • Docker
Instalação
  1. Clone o repositório:
  git clone https://github.com/JonasBorgesLM/go_server.git
  cd go_server

Directories ¶

Path Synopsis
cmd
api command
Package main is the entry point for the API server application.
Package main is the entry point for the API server application.
internal
config
Package config handles environment variables and app settings.
Package config handles environment variables and app settings.
domain
Package domain defines the core entities and interfaces related to user management.
Package domain defines the core entities and interfaces related to user management.
dto
Package dto contains data transfer objects used in the error response.
Package dto contains data transfer objects used in the error response.
formatter
Package formatter provides utility functions to convert between domain models and DTOs.
Package formatter provides utility functions to convert between domain models and DTOs.
handler
Package handler provides HTTP handlers for login operations.
Package handler provides HTTP handlers for login operations.
middleware
Package middleware provides HTTP middleware for handling authentication.
Package middleware provides HTTP middleware for handling authentication.
repository
Package repository provides implementations for accessing and manipulating data in the user database.
Package repository provides implementations for accessing and manipulating data in the user database.
server
Package server provides the core functionality for running and managing the application's HTTP server.
Package server provides the core functionality for running and managing the application's HTTP server.
usecase
Package usecase provides business logic implementations for login application.
Package usecase provides business logic implementations for login application.
pkg
database
Package database handles PostgreSQL connections and operations.
Package database handles PostgreSQL connections and operations.
utils
Package utils provides cryptographic utility functions for securely hashing and comparing passwords using bcrypt.
Package utils provides cryptographic utility functions for securely hashing and comparing passwords using bcrypt.
validations
Package validations provides custom validation functions for various data types, such as email addresses.
Package validations provides custom validation functions for various data types, such as email addresses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL