Important
VVS INFO!!!
Verzija Expense Tracker API-ja koja je koristena u Tasku 3 je na branchu VVS
Simple .NET expense tracker for managing your finances.
Make sure you have docker installed. Navigate to /docker/compose and run:
docker compose up -dthis will spin up a database and the backend API on port 8080.
On startup, the database will be populated with the necessary tables and seeded with some dummy data. To see what exactly gets created, the database initialization script is at /scripts/database.sql.
To see what the API has to offer, Swagger is enabled at route /swagger.
-
Set the
DATABASE_URLenvironment variable:export DATABASE_URL="postgresql://user:password@host:port/database?sslmode=require"
-
Initialize the database schema:
# Linux/Mac ./scripts/init-db.sh # Windows PowerShell .\scripts\init-db.ps1
-
Run the application - it will automatically use the
DATABASE_URLenvironment variable.
For local development, update appsettings.development.json with your local database connection string, or set the DATABASE_URL environment variable.
For detailed API documentation, see ExpenseTrackerAPI/docs/API.md.