Go Project Setup and Architecture
User Story
As a developer, I want a well-structured Go project foundation so that the team can develop efficiently with consistent patterns.
Technical Requirements
Acceptance Criteria
Definition of Done
Implementation Guide
Directory Structure
voidrunner/
├── cmd/
│ └── server/
│ └── main.go
├── internal/
│ ├── api/
│ │ ├── handlers/
│ │ ├── middleware/
│ │ └── routes/
│ ├── config/
│ ├── database/
│ └── models/
├── pkg/
├── migrations/
├── docker/
├── scripts/
├── .env.example
├── go.mod
├── go.sum
├── Dockerfile
└── README.md
Essential Commands
# Initialize Go module
go mod init github.com/voidrunnerhq/voidrunner
# Install dependencies
go get github.com/gin-gonic/gin
go get github.com/joho/godotenv
go get github.com/sirupsen/logrus
go get github.com/google/uuid
# Run the server
go run cmd/server/main.go
Related Epic
Contributes to Epic #1: Core API Infrastructure
Go Project Setup and Architecture
User Story
As a developer, I want a well-structured Go project foundation so that the team can develop efficiently with consistent patterns.
Technical Requirements
Acceptance Criteria
.envfileDefinition of Done
Implementation Guide
Directory Structure
Essential Commands
Related Epic
Contributes to Epic #1: Core API Infrastructure