gin-sysacad

command module
v0.0.0-...-f305a5c Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 3 Imported by: 0

README

SYSACAD en Gin Framework

https://gin-gonic.com/es/docs/quickstart/

Estructura del Proyecto

gin-sysacad
├── cmd
│   └── main.go          
├── internal
│   ├── handlers
│   │   └── handlers.go  
│   ├── middleware
│   │   └── middleware.go 
│   └── models
│       └── models.go    
├── config
│   └── config.go        
├── go.mod                
├── go.sum                
└── README.md             

Requisitos previos

  1. Tener instalado Golang version 1.24 https://go.dev/doc/install

Crear Proyecto Nuevo

go mod init https://github.com/usuario/proyecto

Instrucciones para el Proyecto

  1. Clone the repository:

    git clone https://github.com/umpprats/gin-sysacad
    cd gin-sysacad
    
  2. Instalar dependencias:

    go mod tidy
    
  3. Ejecutar Test

    # Ejecuta todos los test en un directorio/carpeta
    go test
    # Ejecuta un test específico
    go test -run UniversidadTest
    
  4. Ejecutar aplicación:

    go run main.go
    

Conexión a través de un ORM PostgreSQL

ORM simplifica el acceso a los datos al permitir a los desarrolladores interactuar con bases de datos mediante objetos y métodos de su lenguaje de programación preferido, en lugar de escribir consultas SQL.

go get gorm.io/gorm
go get gorm.io/driver/postgres

Para obtener los valores de variables de entorno para el proyecto:

go get github.com/spf13/viper

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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