expenses-analyzer

module
v0.0.0-...-5dc8f6f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0

README

expenses-analyzer

Pet project for learning Golang and maybe a boilerplate for future projects

Run

go run cmd/api/main.go

Docs

http://localhost:8080/swagger/index.html

Update API docs
./scripts/gen_doc.sh

Migrations

Sync DB
go run cmd/migrate/main.go up

Or use auto migrate by setting env var to DB_AUTO_MIGRATE=true

Generate an migration DB

Enable DB_AUTO_MIGRATE and DB_DEBUG flags to see on the migration logs query and then create a migration with this command:

go run cmd/migrate/main.go create <migration name> sql
Execute on docker
docker-compose up

TODO

  • fix api response for duplicated items on DB
  • expand expenses module
  • unit tests
  • e2e test
  • authentication
  • graphql
  • implement expense parsers for collectors

Directories

Path Synopsis
cmd
api
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
tag

Jump to

Keyboard shortcuts

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