https://github.com/guerzon/gobudget-api
Golang pet project for a budgeting app inspired by YNAB
https://github.com/guerzon/gobudget-api
go golang rest-api
Last synced: 7 months ago
JSON representation
Golang pet project for a budgeting app inspired by YNAB
- Host: GitHub
- URL: https://github.com/guerzon/gobudget-api
- Owner: guerzon
- License: mit
- Created: 2024-08-23T04:20:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T05:37:18.000Z (10 months ago)
- Last Synced: 2024-12-31T22:32:54.623Z (9 months ago)
- Topics: go, golang, rest-api
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gobudget-api
Inspired by YNAB API (because we love reinventing the wheel, for learning purposes of course).
Work in progress.
## Configuration
`app.env`:
```config
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.
```bash
sudo apt install build-essentialgo 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
```