This app can track your income and expenses.
Make sure you have Go, PostgreSQL and Goose installed on your machine.
- Clone the project
- Run the migration with goose
cd database/schema
and thengoose postgres {your_postgres_url} up
- Run the project with seeder
go run main.go -seeder true
- Access the project in localhost:8080
- Build image
docker compose build
. - Create containers
docker compose create
. - Run everything
docker compose up -d
. - Go to the project bash/sh
docker compose exec app sh
- Run migration
cd database/schema
and rungoose postgres postgres://{db_user}:{db_password}@database:5432/money-tracking-app up
. - Go back to the root folder and populate the database with seeder
go run main.go -seeder=true
and then press ctr/cmd+c to exit (please ignore the error address already in use, the goal is just to populate the database with seeder). - Exit and the project will run in localhost:8080
- /api/categories
- /api/users
- /api/wallets
- /api/transactions