Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 1.02 KB

README.md

File metadata and controls

57 lines (49 loc) · 1.02 KB

DAuth-Backend-v2


Requirements

Setup

  • Configure .vscode/settings.json

    {
        "go.lintTool":"golangci-lint",
        "go.lintFlags": [
        "--fast"
        ],
        "go.lintOnSave": "package",
        "go.formatTool": "goimports",
        "go.useLanguageServer": true,
        "[go]": {
            "editor.formatOnSave": true,
            "editor.codeActionsOnSave": {
                "source.organizeImports": true
            }
        },
        "go.docsTool": "gogetdoc"
    }
    
  • Enable githooks

    git config core.hooksPath .githooks
  • Create .env file

    cp .env.example .env
  • Install reflex

    go install github.com/cespare/reflex@latest
  • Configure database settings in config.json

Run with Reflex

  • reflex -s -r '\.go$$' go run main.go

Run

  • go run main.go