This is just a personal project I'm using to learn the Go programming language and its libraries.
using different package approaches to validate the better structure for each use case
The road so far
Pending
Running:
create a .env file containing application environment variables:
APP_TOKEN=aRandomGeneratedString
DB_NAME=databaseName
DB_USER=databaseUsername
DB_PASSWORD=databasePassword
DB_HOST=0.0.0.0
DB_PORT=5432
IMAGE_NAME=dockerRepositoryImage
IMAGE_VERSION=dockerTagVersion
GIN_MODE=release
vscode configuration file for debugging
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"envFile": "${workspaceFolder}/.env",
}
]
}
deploy a local database server for development
$ make database
show database logs
$ docker logs financedb
build docker image and execute development environment with a local database
$ make dev