Skip to content

yazmeyaa/hosthalla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hosthalla

Hosthalla is a Go web application with PostgreSQL-backed storage and server-side UI templates.

Requirements

  • Go 1.26+
  • Docker + Docker Compose

Development Setup

  1. Start local infrastructure:
make dev-up
  1. Apply database migrations:
make migrate-up
  1. Create the app config (or provide your own path with -config):
go run ./cmd/web

The default config file path is ~/.hosthalla/config.yaml. If the file does not exist, Hosthalla creates a template and exits so you can fill it in.

Example config:

web:
  host: 0.0.0.0
  port: 8080
database:
  host: localhost
  port: 5432
  user: hosthalla
  password: hosthalla
  database: hosthalla
  1. Run the web server:
go run ./cmd/web

Useful Commands

  • Regenerate templ files: make templ-generate
  • Create a user: go run ./cmd/cli create-user <username> <password>
  • Stop dev services: make dev-down
  • Reset dev services and volumes: make dev-reset

License

Licensed under the MIT License. See LICENSE.

About

Hosthalla is a Go web app for managing hosts with PostgreSQL and server-rendered templ UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors