Quickly initialize an opinionated go web server (MVC) with tools (dotfile, cli, etc..) already configured.
Go to file Use this template
DataHearth 0485ac50c7
initial commit
2024-01-03 21:47:14 +01:00
.gitea initial commit 2024-01-03 21:47:14 +01:00
controllers initial commit 2024-01-03 21:47:14 +01:00
models initial commit 2024-01-03 21:47:14 +01:00
templates/common initial commit 2024-01-03 21:47:14 +01:00
views initial commit 2024-01-03 21:47:14 +01:00
.air.toml initial commit 2024-01-03 21:47:14 +01:00
.dockerignore initial commit 2024-01-03 21:47:14 +01:00
.gitignore initial commit 2024-01-03 21:47:14 +01:00
Dockerfile initial commit 2024-01-03 21:47:14 +01:00
LICENSE initial commit 2024-01-03 21:47:14 +01:00
README.md initial commit 2024-01-03 21:47:14 +01:00
go.mod initial commit 2024-01-03 21:47:14 +01:00
input.css initial commit 2024-01-03 21:47:14 +01:00
main.go initial commit 2024-01-03 21:47:14 +01:00
package.json initial commit 2024-01-03 21:47:14 +01:00
tailwind.config.js initial commit 2024-01-03 21:47:14 +01:00

README.md

${REPO_NAME}

${REPO_DESCRIPTION}

Commands

serve - Launch the web server
$ serve --help

   NAME:
      ${REPO_NAME} serve - Start the web server

   USAGE:
      ${REPO_NAME} serve [command options] [arguments...]

   OPTIONS:
      database

      --db-host value      Database host (default: "localhost") [$$${REPO_NAME_UPPER}_DB_HOST]
      --db-password value  Database password (default: "${REPO_NAME_LOWER}") [$$${REPO_NAME_UPPER}_DB_PASSWORD]
      --db-port value      Database port (default: 5432) [$$${REPO_NAME_UPPER}_DB_PORT]
      --db-user value      Database user (default: "${REPO_NAME_LOWER}") [$$${REPO_NAME_UPPER}_DB_USER]

      logging

      --log-file value   Log file [$$${REPO_NAME_UPPER}_LOG_FILE]
      --log-level value  Log verbosity level (debug, info, warn, error) (default: "info") [$$${REPO_NAME_UPPER}_LOG_LEVEL]

      server

      --host value, -H value  Host to listen on (default: "localhost") [$$${REPO_NAME_UPPER}_HTTP_HOST]
      --port value, -P value  Port to listen on (default: 8080) [$$${REPO_NAME_UPPER}_HTTP_PORT]