Skip to content

ethansaxenian/budgeting

Repository files navigation

A simple web app to track monthly expenses.

Requirements:

  • make
  • docker-compose

Running the app

  1. Create a .env file with the following contents:
APP_PORT=
DB_PORT=
DB_USER=
DB_PASSWORD=

Any variables you set in .env will be set in the docker environment, so you can set the timezone with TZ, for example.

  1. Run make start. This will build and run 5 docker containers:
    • db: The postgresql database, accessible locally on port DB_PORT.
    • server: The main go webserver. Automatically reloads when app code is changed.
    • proxy: A proxy for the web app that automatically reload the browser when changes are made to .templ files. This container exposes the app on port APP_PORT.
    • tailwind: Rebuilds the main css file when changes are made and sends a reload event to proxy.
    • sqlc: Regenerates the sqlc files when changes are made to queries/*.sql.
  2. Run make migrate to set up the database.
  3. Visit http://localhost:<APP_PORT> in your web browser.

About

A simple expense tracker using go, templ, and htmx

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •