# moon
**Repository Path**: aide-cloud/moon
## Basic Information
- **Project Name**: moon
- **Description**: 一站式云原生监控系统, 专为简化云原生监控的运维工作而设计, 旨在帮助企业快速部署云原生监控系统
- **Primary Language**: Go
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: https://aide-family.github.io/
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 2
- **Created**: 2024-12-14
- **Last Updated**: 2026-05-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Moon
Go backend platform for aide-family — monorepo of shared tooling and microservices
中文 · English
---
## Table of Contents
- [About](#about)
- [Features](#features)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Project Structure](#project-structure)
- [Documentation](#documentation)
- [Contributing](#contributing)
- [License](#license)
- [Acknowledgments](#acknowledgments)
---
## About
**Moon** is a [Go](https://go.dev/) backend platform maintained by [aide-family](https://github.com/aide-family). This repository is a **monorepo** that includes:
- A shared toolkit and library used by all applications
- Microservices built with [Kratos](https://github.com/go-kratos/kratos) and [Cobra](https://github.com/spf13/cobra)
Each application has its own `go.mod`, build pipeline, and documentation (English & 中文).
---
## Features
- **Monorepo** — One repository for shared code and multiple services
- **Kratos** — Consistent service framework (HTTP/gRPC, config, logging)
- **Cobra** — CLI and subcommands for each app
- **Magic Box** — Shared utilities (safety, OAuth, validation, etc.) used across apps
- **Bilingual docs** — README and docs in English and 中文 for root and sub-projects
---
## Prerequisites
- [Go](https://go.dev/) **1.25+**
- [Make](https://www.gnu.org/software/make/)
---
## Installation
```bash
git clone https://github.com/aide-family/moon.git
cd moon
```
No global install is required at the repo root. Each app is built and run from its own directory (see [Quick Start](#quick-start) and [Documentation](#documentation)).
---
## Quick Start
From the repository root:
**Build all apps:**
```bash
make all
```
**Run a single app in development mode:**
```bash
make
```
Where `` is one of: `goddess`, `rabbit`, `marksman`, `jade_tree`. Example:
```bash
make rabbit
```
**List all Make targets:**
```bash
make help
```
**Generate code (e.g. from protos) for all apps:**
```bash
make gen
```
For app-specific setup (config, database, etc.), see the README of each app under [Documentation](#documentation).
---
## Project Structure
| Path | Name | Description |
|------|------|-------------|
| [`magicbox/`](magicbox/) | Magic Box (月光宝盒) | Shared toolkit and library (safety, OAuth, validation, etc.) |
| [`app/goddess/`](app/goddess/) | Goddess (嫦娥) | Authentication and authorization service |
| [`app/rabbit/`](app/rabbit/) | Rabbit (玉兔) | Business service (e.g. time engine and related features) |
| [`app/marksman/`](app/marksman/) | Marksman (后羿) | Event service |
| [`app/jade_tree/`](app/jade_tree/) | Jade Tree (玉树) | Agent runtime service for collection and communication |
| [`proto/`](proto/) | Protos | API definitions (e.g. goddess, rabbit) |
- **magicbox** is a Go module; **goddess**, **rabbit**, and **marksman** depend on it via `replace` in their `go.mod`.
- Each app has its own `go.mod`, Makefile, and README (EN / 中文).
---
## Documentation
| Project | English | 中文 |
|---------|---------|------|
| Goddess | [README](app/goddess/README.md) | [README](app/goddess/README-zh_CN.md) |
| Rabbit | [README](app/rabbit/README.md) | [README](app/rabbit/README-zh_CN.md) |
| Marksman | [README](app/marksman/README.md) | [README](app/marksman/README-zh_CN.md) |
| Jade Tree | [README](app/jade_tree/README.md) | [README](app/jade_tree/README-zh_CN.md) |
| Magic Box | [README](magicbox/README.md) | [README](magicbox/README-zh_CN.md) |
---
## Contributing
Contributions are welcome. Please:
1. Open an [Issue](https://github.com/aide-family/moon/issues) for bugs or feature requests.
2. Fork the repo, create a branch, make your changes, and open a [Pull Request](https://github.com/aide-family/moon/pulls).
Ensure code and style match the existing project conventions.
---
## License
This project is under the **MIT License**. Each sub-project may have its own LICENSE file; see the following for details:
- [app/goddess/LICENSE](app/goddess/LICENSE)
- [app/rabbit/LICENSE](app/rabbit/LICENSE)
- [app/marksman/LICENSE](app/marksman/LICENSE)
- [magicbox/LICENSE](magicbox/LICENSE)
---
## Acknowledgments
- [Kratos](https://github.com/go-kratos/kratos) — Go microservice framework
- [Cobra](https://github.com/spf13/cobra) — CLI library for Go