godoit

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

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 5 Imported by: 0

README

godoit

Getting Started

  • Starting the service
    • From the command line with environment variables
      • GODOIT_PORT=8080 GODOIT_DEBUG=true GODOIT_ENVIRONMENT=dev go run main.go, adding extra KEY=VALUE's as needed
    • Example .vscode/launch.json file to run in debug mode with vscode's built in debugger
  • Starting postgres
    • From the command line
      • docker run --name postgres-local -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=godoit -p 5432:5432 -d postgres
  • Connecting to postgres from previous command
    • From the command line using psql
      • psql -h localhost -p 5432 -U postgres -d godoit
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch", 
            "mode": "debug",
            "program": "${workspaceFolder}",
            "showLog": true,
            "env": {
                "GODOIT_PORT": "8080",
                "GODOIT_DEBUG": "true",
                "GODOIT_ENVIRONMENT": "dev",
                "GODOIT_DB_HOST": "localhost",
                "GODOIT_DB_USER": "postgres",
                "GODOIT_DB_PASS": "postgres",
            },
        }
    ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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