|
2 rokov pred | |
---|---|---|
.idea | 2 rokov pred | |
cmd | 2 rokov pred | |
config | 2 rokov pred | |
deploy | 2 rokov pred | |
internal | 2 rokov pred | |
pkg | 2 rokov pred | |
test | 2 rokov pred | |
web | 2 rokov pred | |
.gitignore | 2 rokov pred | |
LICENSE | 2 rokov pred | |
README.md | 2 rokov pred | |
README_zh.md | 2 rokov pred | |
go.mod | 2 rokov pred | |
go.sum | 2 rokov pred |
Nunu is an application scaffold based on Golang. Its name comes from the character Nunu in League of Legends, who is a little boy riding on the shoulder of a snowman. Like Nunu, Go-Nunu also stands on the shoulders of giants, and it is composed of various third-party libraries, including gin, gorm, wire, viper, zap, golang-jwt, go-redis, testify, sonyflake, tableflip, go-survey, cobra, etc. These libraries are very popular in the Golang ecosystem, and their combination can help you quickly build an efficient and reliable application.
More...
Easy to use and customize: Nunu provides a simple and intuitive API for building web applications. You can easily customize the application to meet specific needs.
High performance and scalability: Nunu is designed 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.
Secure and reliable: Nunu places great emphasis on security. It provides built-in authentication, authorization, and encryption support. It also uses reliable third-party libraries to ensure that your application is secure and reliable.
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.
Well-documented and thoroughly tested: Nunu is well-documented and thoroughly tested. It provides comprehensive documentation and examples to help you get started quickly. It also includes a suite of tests to ensure that your application works as expected.
To use Nunu, you need to install the following software on your system:
Golang 1.16 or higher
MySQL 5.7 or higher (optional)
Redis (optional)
You can install Nunu with the following command:
go install github.com/go-nunu/nunu
Using Nunu is very simple, you just need to follow these steps:
Create a new project
nunu new my_project
Enter the project directory
cd my_project
Run the project
nunu run
Open http://localhost:8000/ in your browser, and you will see a welcome page.
The directory structure of Nunu is as follows:
.
├── cmd
│ ├── job
│ │ ├── wire
│ │ │ ├── wire.go
│ │ │ └── wire_gen.go
│ │ └── main.go
│ ├── migration
│ │ ├── wire
│ │ │ ├── wire.go
│ │ │ └── wire_gen.go
│ │ └── main.go
│ └── server
│ ├── wire
│ │ ├── wire.go
│ │ └── wire_gen.go
│ └── main.go
├── config
│ ├── local.yml
│ └── prod.yml
├── deploy
│ └── Dockerfile
├── internal
│ ├── database
│ │ └── migration.go
│ ├── handler
│ │ └── user.go
│ ├── job
│ │ └── job.go
│ ├── middleware
│ │ ├── cors.go
│ │ ├── jwt.go
│ │ ├── log.go
│ │ └── sign.go
│ ├── model
│ │ └── user.go
│ ├── provider
│ │ └── provider.go
│ ├── repository
│ │ └── user.go
│ ├── server
│ │ └── http.go
│ └── service
│ ├── user.go
│ └── user_test.go
├── pkg
│ ├── config
│ │ └── config.go
│ ├── db
│ │ └── db.go
│ ├── log
│ │ ├── storage
│ │ │ └── logs
│ │ │ └── server.log
│ │ ├── log.go
│ │ └── log_test.go
│ ├── md5
│ │ └── md5.go
│ ├── rdb
│ │ └── redis.go
│ ├── resp
│ │ └── resp.go
│ ├── sonyflake
│ │ └── sonyflake.go
│ └── uuid
│ └── uuid.go
├── storage
│ └── logs
│ └── server.log
├── test
│ └── server
│ └── handler
│ ├── storage
│ │ └── logs
│ │ └── server.log
│ └── user_test.go
├── web
│ └── index.html
├── LICENSE
├── README.md
├── README_zh.md
├── go.mod
└── go.sum
Nunu is licensed under the MIT License. For more information, see the LICENSE file.