Update DashboardPage and DashboardContentSwap to receive the list of tablos so the sidebar can display real project data. Extract tablo icon palette logic into a new tabloicons package that maps hex colors to presentation attributes (icon, background, foreground colors). Update handlers to load tablos from the repository before rendering dashboard views. Refactor TabloCardView to use icon presentation instead of initials when available. |
||
|---|---|---|
| .. | ||
| cmd | ||
| internal | ||
| static | ||
| .air.toml | ||
| .env.example | ||
| compose.yaml | ||
| go.mod | ||
| go.sum | ||
| justfile | ||
| main.go | ||
| package.json | ||
| README.md | ||
| router.go | ||
| router_test.go | ||
| sqlc.yaml | ||
| tailwind.input.css | ||
| tools.go | ||
go-backend
Local Postgres
Start Postgres with Podman:
just db-up
Reset the local database volume and reinitialize the schema:
just db-reset
The database is exposed at localhost:5432 and initialized from internal/db/schema.sql.
The local workflow uses podman compose.
If your global Docker config contains corporate credential helpers, the just recipes isolate compose with a local DOCKER_CONFIG to avoid unrelated registry auth hooks on public image pulls.
Fresh database volumes are also seeded from internal/db/seed.sql with demo@xtablo.com / xtablo-demo.
Connection string:
export DATABASE_URL=postgres://xtablo:xtablo@localhost:5432/xtablo?sslmode=disable
Run the app with hot reload:
just dev
Other useful commands:
just generate
just test
just build
just check
just db-logs
just db-down