Categorygithub.com/dhanielsales/go-api-template
repository
0.0.0-20241211204005-80236ea41692
Repository: https://github.com/dhanielsales/go-api-template.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

Getting Started

  1. Download the needed packages task install
  2. Create and populate the app.env file with the needed environment variables, can be found in app.env.example

Dependencies, Tools and Infra

First, install the Taskfile to run the tasks and provide other tools:

Taskfile:

https://taskfile.dev/installation/

go install github.com/go-task/task/v3/cmd/task@latest

Then, install the all other tools with the command:

task setup-tools

Now, create docker containers with dependencies:

task setup-infra

Deployment

[PENDING]

  • Checar GO_ENV para deploy

https://railway.app/pricing

TODO

  • refactor log
  • Add observability
  • Add conversational id to logs
  • Add CI/CD
  • Change Http layer for echo
  • Refactor sqlutils to enable interface to unit tests
  • Refactor rediutils to enable interface to unit tests
  • Add tests
  • Refact logger using zap
  • Add simple auth using package and an interface to able to setup your own auth or clerk