domain_config

command module
v0.0.0-...-d44ae4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

README

This is just a play project to keep track of some "properties" in a sqllite db. The idea is to work towards a more generic approach to keep track of configuration properties where properties can store values, but can also depend on other properties to calculate default values.

Prepare the database using migrations:

Assuming here that sqlite3 is already installed. On mac this can be done using brew install sqlite3

go install -tags 'sqlite3' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

cd domain_config
migrate -path database/migration/ -database "sqlite3://main.db" -verbose up

Optionally example data can be imported:

sqlite3 main.db < example_dml.sql

Running:

templ generate; go run .

Browser:

open http://localhost:8080/properties

continuous dev

tmux pane1: npm run watch
tmux pane2: air
tmux pane3: nvim .

or using zellij:

zellij --layout develop.kdl

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
_play

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL