Назад к каталогу
nunu

nunu

Сообщество

от go-nunu

0.0
0 отзывов

A CLI tool for building Go applications.

Установка

go install github.com/go-nunu/nunu@latest

Описание

<a href="https://trendshift.io/repositories/9047" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9047" alt="go-nunu%2Fnunu | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> # Nunu — A CLI tool for building Go applications. Nunu is a scaffolding tool for building Go applications. Its name comes from a game character in League of Legends, a little boy riding on the shoulders of a Yeti. Just like Nunu, this project stands on the shoulders of giants, as it is built upon a combination of popular libraries from the Go ecosystem. This combination allows you to quickly build efficient and reliable applications. 🚀Tips: This project is very complete, so updates will not be very frequent, welcome to use. - [简体中文介绍](https://github.com/go-nunu/nunu/blob/main/README_zh.md) - [Português](https://github.com/go-nunu/nunu/blob/main/README_pt.md) - [日本語](https://github.com/go-nunu/nunu/blob/main/README_jp.md) ![Nunu](https://github.com/go-nunu/nunu/blob/main/.github/assets/banner.png) ## Documentation * [User Guide](https://github.com/go-nunu/nunu/blob/main/docs/en/guide.md) * [Architecture](https://github.com/go-nunu/nunu/blob/main/docs/en/architecture.md) * [Getting Started Tutorial](https://github.com/go-nunu/nunu/blob/main/docs/en/tutorial.md) * [Unit Testing](https://github.com/go-nunu/nunu/blob/main/docs/en/unit_testing.md) * [MCP Server](https://github.com/go-nunu/nunu-layout-mcp/blob/main/README.md) ## Features - **Gin**: https://github.com/gin-gonic/gin - **Gorm**: https://github.com/go-gorm/gorm - **Wire**: https://github.com/google/wire - **Viper**: https://github.com/spf13/viper - **Zap**: https://github.com/uber-go/zap - **Golang-jwt**: https://github.com/golang-jwt/jwt - **Go-redis**: https://github.com/go-redis/redis - **Testify**: https://github.com/stretchr/testify - **Sonyflake**: https://github.com/sony/sonyflake - **Gocron**: https://github.com/go-co-op/gocron - **Go-sqlmock**: https://github.com/DATA-DOG/go-sqlmock - **Gomock**: https://github.com/golang/mock - **Swaggo**: https://github.com/swaggo/swag - **Casbin**: https://github.com/casbin/casbin - **Pitaya**: https://github.com/topfreegames/pitaya - **MCP-GO**: https://github.com/mark3labs/mcp-go - More... ## Key Features * **Low Learning Curve and Customization**: Nunu encapsulates popular libraries that Gophers are familiar with, allowing you to easily customize the application to meet specific requirements. * **High Performance and Scalability**: Nunu aims to be high-performance and scalable. It uses the latest technologies and best practices to ensure that your application can handle high traffic and large amounts of data. * **Security and Reliability**: Nunu uses stable and reliable third-party libraries to ensure the security and reliability of your application. * **Modular and Extensible**: Nunu is designed to be modular and extensible. You can easily add new features and functionality by using third-party libraries or writing your own modules. * **Complete Documentation and Testing**: Nunu has comprehensive documentation and testing. It provides extensive documentation and examples to help you get started quickly. It also includes a test suite to ensure that your application works as expected. ## Concise Layered Architecture Nunu adopts a classic layered architecture. In order to achieve modularity and decoupling, it uses the dependency injection framework `Wire`. ![Nunu Layout](https://github.com/go-nunu/nunu/blob/main/.github/assets/layout.png) ## Nunu CLI ![Nunu](https://github.com/go-nunu/nunu/blob/main/.github/assets/screenshot.jpg) ## Directory Structure ``` . ├── api │   └── v1 ├── cmd │   ├── migration │   ├── server │   │   ├── wire │   │   │   ├── wire.go │   │   │   └── wire_gen.go │   │   └── main.go │   └── task ├── config ├── deploy ├── docs ├── internal │   ├── handler │   ├── middleware │   ├── model │   ├── repository │   ├── server │   └── service ├── pkg ├── scripts ├── test │   ├── mocks │   └── server ├── web ├── Makefile ├── go.mod └── go.sum ``` The project architecture follows a typical layered structure, consisting of the following modules: * `cmd`: This module contains the entry points of the application, which perform different operations based on different commands, such as starting the server or executing database migrations. Each sub-module has a `main.go` file as the entry file, as well as `wire.go` and `wire_gen.go` files for dependency injection. * `config`: This module contains the configuration files for the application, providing different configurations for different environments, such as development and production. * `deploy`: This module is used for deploying the application and includes deployment scripts and configuration files. * `internal`: This module is the core module of the application and contains the implementation of various business logic. - `handler`: This sub-module contains the handlers for handling HTTP re

Отзывы (0)

Пока нет отзывов. Будьте первым!