https://github.com/salvo-rs/salvo-cli
https://github.com/salvo-rs/salvo-cli
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/salvo-rs/salvo-cli
- Owner: salvo-rs
- License: apache-2.0
- Created: 2023-09-20T11:55:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T13:56:23.000Z (about 1 year ago)
- Last Synced: 2024-04-14T02:22:53.311Z (about 1 year ago)
- Language: Handlebars
- Size: 759 KB
- Stars: 37
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
![]()
## Introduction
Salvo CLI, a tool for the [Salvo](https://github.com/salvo-rs/salvo) web framework, creates clean, easy-to-read code, saving you time for the more enjoyable aspects of life.
If you've got a knack for making CLI even better, or if you've noticed a few quirks that could use some attention, don't be shy! Drop us an issue, we welcome your insights.
## Installation```bash
cargo install salvo-cli
```## Usage
To create a new Salvo project, use the new command followed by the name of your project:
```bash
//use the local language
salvo new project_name// Use English
salvo new project_name --lang=en// 使用简体中文
salvo new project_name --lang=zh// 使用繁體中文
salvo new project_name --lang=zh_TW// Utilisez le français
salvo new project_name --lang=fr// 日本語を使用する
salvo new project_name --lang=ja// Usa el español
salvo new project_name --lang=es// Verwenden Sie Deutsch
salvo new project_name --lang=de// Используйте русский
salvo new project_name --lang=ru// Usa l `italiano
salvo new project_name --lang=it// Use o português
salvo new project_name --lang=pt// 한국어를 사용하십시오
salvo new project_name --lang=ko// Bruk norsk
salvo new project_name --lang=no// Notaðu íslensku
salvo new project_name --lang=is// Використовуйте українську
salvo new project_name --lang=uk// ใช้ภาษาไทย
salvo new project_name --lang=th// Χρησιμοποιήστε την ελληνική
salvo new project_name --lang=el// Brug dansk
salvo new project_name --lang=da
```## Update
```bashs
cargo install --force salvo-cli
```### Feature Development Plan
| Status | Plan |
| :----: | :--------------------------------------------------------------------------------: |
| ✅ | web api template |
| ✅ | web site template |
| ✅ | Template with SQLx, SeaORM, Diesel, Rbatis (support for SQLite, PostgreSQL, MySQL) |
| ✅ | jwt,cors... middleware |
| ✅ | Support for MongoDB |
| ⏳ | command:salvo run |
| ⏳ | Support for docker |
| ⏳ | More integrations with good crates (validation, permissions or others?) |
| ⏳ | Split into multiple crates for clearer code organization |## License
This project is licensed under the MIT OR Apache-2.0 License.
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.