go-wind-admin-guide

Guide Go-Wind Admin backend development with Kratos monolith architecture and Wire DI.

531|143|Updated Aug 18, 2023
One-click install
npx skills add https://github.com/tx7do/go-wind-admin --skill go-wind-admin-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-wind-admin-guide
Source: https://github.com/tx7do/go-wind-admin/tree/main/backend/.qoder/skills/go-wind-admin-guide
Command: npx skills add https://github.com/tx7do/go-wind-admin --skill go-wind-admin-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go-Wind Admin backend development requires understanding a monolith architecture built with Kratos, a clear project layout, code generation workflows, and Wire-based dependency injection; this guide consolidates those practices.

Core Features & Use Cases

  • Architecture overview: monolith with Kratos-based microservice scaffolding and three-tier design.
  • Tooling and workflow: protobuf/code-generation, Ent ORM, and Wire DI to accelerate feature development.
  • Use case: when starting a new feature module, follow the structure and generate code to ensure consistency across api, app, and data layers.

Quick Start

Bootstrap a new feature module in backend/go-wind-admin by following the project structure, running code generation, and wiring dependencies with Wire.

Frequently Asked Questions about go-wind-admin-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Kratos backend with a monolith architecture and three-tier layout?

A Kratos backend with monolith architecture uses a three-tier layout across api, app, and data layers to organize new feature modules. This structure enforces consistent separation of concerns while maintaining a single deployable monolith application for backend development.

How do I generate code and wire dependencies for a new Go backend feature module?

To generate code and wire dependencies for a new Go feature module, you define protobuf schemas, run code generation for Ent ORM, and use Wire-based dependency injection. This workflow accelerates feature development by automatically scaffolding the api, app, and data layers.

Does Kratos work with Ent ORM and Wire dependency injection in a monolith project?

Yes, Kratos works seamlessly with Ent ORM and Wire dependency injection within a monolith project. This combination allows developers to scaffold microservice components, generate database schemas, and wire dependencies automatically while adhering to standard error handling and logging practices.

What is the best way to integrate services and ensure consistency in Go-Wind Admin?

The best way to integrate services and ensure consistency in Go-Wind Admin is by following the repository's three-tier layout conventions. By aligning new features across api, app, and data layers with protobuf and Ent usage, developers maintain architectural consistency throughout the monolith application.

When do I need protobuf and code generation for a Go backend architecture?

You need protobuf and code generation for a Go backend architecture when starting a new feature module in a Kratos-based monolith. Defining protobuf schemas generates consistent API interfaces and data layer code, ensuring that the project layout remains standardized across all integrated services.