Heapi Developer Guide
Welcome to the Heapi developer documentation. This guide provides a starting point for anyone looking to understand, contribute to, or integrate with the Heapi project.
Project Structure
app.go: Core Wails application logic and exposed API.internal/: Backend business logic, database management, and service layers.frontend/: React/TypeScript application.frontend/src/api/: TypeScript wrappers for the Wails backend.docs/: Detailed documentation (that's where you are!).
Key Documentation
- Architecture Overview: Understand how the different layers (Go, Wails, React) connect.
- API Reference: Explore the list of all functions available to the frontend.
- Data Models: Learn about the core structures like Collections, Requests, and Environments.
- Code Examples: See common tasks implemented in Go and TypeScript.
Getting Started
Prerequisites
Running in Development
wails dev
Building for Production
wails build
Contribution Workflow
- Backend Changes: Update
app.goorinternal/. Wails will automatically update TypeScript bindings on the nextwails devorwails generate. - Frontend Changes: Update React components in
frontend/src/. Use the typed API wrappers infrontend/src/api/. - API Changes: If you add a new exposed function in Go, remember to update the corresponding wrapper in
frontend/src/api/to ensure type safety.