Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

wheelerjl/godoit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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",
            },
        }
    ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages