Skip to content

marco-ragusa/TodoList_BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TodoList_BE

A simple todo backend API, written in golang.

Project structure

main.go
config/
    config.go
    database.go
models/
    todo_model.go
    connector.go
controllers/
    todo_controllers.go

main.go contains

  • middleware, intermediate steps of the request for logging or debugging
  • db connection function
  • controller specifications and path
  • kick start of the gin framework

config.go & database.go contain

  • database configuration and generation of the connection string
  • debug config

todo_model.go [tablename_model.go] contains

  • todo table model structure
  • insert model structure of the table
  • update model structure of the table

connector.go contains

  • the db connection string
  • the db connection method
  • the auto migration method of the model todo

todo_connector.go [tablename_controller.go] contains

  • the controllers of a specific model API

##TODO

  • add documentation api with gin-sawgger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages