Development Guide#
Information for developers contributing to embapi.
Getting Started with Development#
This section covers:
- Setting up a development environment
- Running tests
- Understanding the codebase architecture
- Contributing guidelines
- Performance optimization
Project Structure#
embapi/
├── main.go # Application entry point
├── internal/
│ ├── auth/ # Authentication logic
│ ├── database/ # Database layer (sqlc)
│ ├── handlers/ # HTTP handlers
│ └── models/ # Data models
├── testdata/ # Test fixtures
└── docs/ # DocumentationDevelopment Workflow#
- Make changes to code
- Generate sqlc code if database queries changed:
sqlc generate - Run tests:
go test -v ./... - Build:
go build -o embapi main.go - Submit pull request
Resources#
- Testing - How to run tests
- Contributing - Contribution guidelines
- Architecture - Technical deep-dive
- Performance - Optimization notes