My project template for 2023 using Go (Fiber and MongoDB)

My project template for 2023 using Go (Fiber and MongoDB)

November 10th, 20222 minGo, Fiber

.github

workflows

CI.yaml

cmd

http

main.go

config

env.json

deploy

dockerfile

docs

docs.go

swagger.json

swagger.yaml

hooks

pre-commit.sh

internal

user

application

application.go

create_user.go

create_user_test.go

domain

models

user.go

ports

user_application.go

user_handlers.go

user_repository.go

infrastructure

handlers

fiber.go

create_user.go

create_user_test.go

repositories

mongo.go

create_user.go

create_user_test.go

logs

log-2023-01-01.csv

pkg

middleware

application

middleware.go

authenticate.go

domain

request.go

ports.go

infrastructure

scripts

build.sh

generate-mocks.sh

.gitignore

go.mod

go.sum

main.go

README.md

Conclusions 🤔

Each year you improve as a developer exponentially if you're constantly starting new projects, it helps you think: What would I have done differently when starting this project? What tool would I have used instead of this other one? and applying them you iterate little by little until you find your perfect "template" to start a project. For now this is mine and I hope it helps you create yours according to your needs.