gobudget-api

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 18 Imported by: 0

README

gobudget-api

Inspired by YNAB API (because we love reinventing the wheel, for learning purposes of course).

Work in progress.

Configuration

app.env:

DB_CONNSTRING=postgresql://app:Supers3cret@localhost:5432/appdb?sslmode=disable
DB_MIGRATION_FILES=file://db/migration
APP_URL=http://localhost:8080/beta
ENVIRONMENT=local
LISTEN_ADDR=0.0.0.0
LISTEN_PORT=8080
SECRET_KEY=SuperS3cretJwtKey4DevelopmentUs@ge
ACCESS_TOKEN_DURATION=60m
REFRESH_TOKEN_DURATION=24h
REDIS_ADDRESS=127.0.0.1:6379
EMAIL_SENDER_NAME=
GMAIL_SENDER_ADDRESS=
GMAIL_SENDER_PASSWORD=
MAILHOG_HOST=localhost:1025
MAILHOG_SENDER_ADDRESS=gobudgetapi@localdomain.lcl

Developer setup

Install Docker.

sudo apt install build-essential

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go install go.uber.org/mock/mockgen@latest
go install github.com/swaggo/swag/cmd/swag@latest
go install github.com/securego/gosec/v2/cmd/gosec@latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
pkg
api
db
mock
Package mockdb is a generated GoMock package.
Package mockdb is a generated GoMock package.

Jump to

Keyboard shortcuts

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