xtablo-source/deprecated
Arthur Belleville 5d0c201e86
Some checks failed
backend-ci / Backend tests (pull_request) Failing after 53s
backend-ci / Backend tests (push) Failing after 1s
Some work
2026-05-23 17:26:01 +02:00
..
cmd Some work 2026-05-23 17:26:01 +02:00
internal Some work 2026-05-23 17:26:01 +02:00
static Some work 2026-05-23 17:26:01 +02:00
.air.toml Some work 2026-05-23 17:26:01 +02:00
.env.example Some work 2026-05-23 17:26:01 +02:00
compose.yaml Some work 2026-05-23 17:26:01 +02:00
go.mod Some work 2026-05-23 17:26:01 +02:00
go.sum Some work 2026-05-23 17:26:01 +02:00
justfile Some work 2026-05-23 17:26:01 +02:00
main.go Some work 2026-05-23 17:26:01 +02:00
package.json Some work 2026-05-23 17:26:01 +02:00
README.md Some work 2026-05-23 17:26:01 +02:00
router.go Some work 2026-05-23 17:26:01 +02:00
router_test.go Some work 2026-05-23 17:26:01 +02:00
sqlc.yaml Some work 2026-05-23 17:26:01 +02:00
tailwind.input.css Some work 2026-05-23 17:26:01 +02:00
tools.go Some work 2026-05-23 17:26:01 +02:00

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