From 2439838063203249f0f6f797de56c2ad3634a16d Mon Sep 17 00:00:00 2001 From: Fankai Liu Date: Sat, 28 Oct 2023 16:06:05 +0800 Subject: [PATCH] Add introduction of salvo-cli --- README.md | 12 ++++++++++++ README.zh-hans.md | 13 +++++++++++++ README.zh-hant.md | 12 ++++++++++++ 3 files changed, 37 insertions(+) diff --git a/README.md b/README.md index 3a4fadcff..e4c67f89e 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,18 @@ Salvo is an extremely simple and powerful Rust web backend framework. Only basic ## ⚡️ Quick Start You can view samples [here](https://github.com/salvo-rs/salvo/tree/main/examples), or view [official website](https://salvo.rs). +### 🛠️ Salvo-cli +Salvo CLI is a command-line tool that simplifies the creation of new Salvo projects, supporting templates for web APIs, websites, databases (including SQLite, PostgreSQL, and MySQL via SQLx, SeaORM, Diesel, Rbatis), and basic middleware. +You can use [salvo-cli](https://github.com/salvo-rs/salvo-cli) to create a new Salvo project: +#### install +```bash +cargo install salvo-cli +``` +#### create a new salvo project +```bash +salvo-cli new project_name +``` +___ ### Hello World with ACME and HTTP3 diff --git a/README.zh-hans.md b/README.zh-hans.md index 5ce5ef1c0..c5575f375 100644 --- a/README.zh-hans.md +++ b/README.zh-hans.md @@ -53,6 +53,19 @@ Salvo(赛风) 是一个极其简单且功能强大的 Rust Web 后端框架. 仅 你可以查看[实例代码](https://github.com/salvo-rs/salvo/tree/main/examples), 或者访问[官网](https://salvo.rs). +### 🛠️ Salvo-cli +Salvo CLI是一个命令行工具,可以简化创建新的Salvo项目的过程,支持Web API、网站、数据库(包括通过SQLx、SeaORM、Diesel、Rbatis支持的SQLite、PostgreSQL、MySQL)和基本的中间件的模板。 +你可以使用 [salvo-cli](https://github.com/salvo-rs/salvo-cli) 来创建一个新的 Salvo 项目: +#### 安装 +```bash +cargo install salvo-cli +``` +#### 创建一个salvo项目 +```bash +salvo-cli new project_name +``` +___ + ### Hello World with ACME and HTTP3 轻轻松松实现一个支持 ACME 自动获取证书的,支持 HTTP3 的服务器. diff --git a/README.zh-hant.md b/README.zh-hant.md index 765d21bec..3b60f1619 100644 --- a/README.zh-hant.md +++ b/README.zh-hant.md @@ -52,7 +52,19 @@ Salvo(賽風) 是一個極其簡單且功能強大的 Rust Web 後端框架. 僅 ## ⚡️ 快速開始 你可以查看[實例代碼](https://github.com/salvo-rs/salvo/tree/main/examples), 或者訪問[官網](https://salvo.rs). +### 🛠️ Salvo-cli +Salvo CLI是一個命令行工具,可以簡化創建新的Salvo項目的過程,支援Web API、網站、資料庫(包括透過SQLx、SeaORM、Diesel、Rbatis支援的SQLite、PostgreSQL、MySQL)和基本的中介軟體的模板。 +你可以使用 [salvo-cli](https://github.com/salvo-rs/salvo-cli) 来來創建一個新的 Salvo 項目: +#### 安裝 +```bash +cargo install salvo-cli +``` +#### 創建一個新的salvo項目 +```bash +salvo-cli new project_name +``` +___ ### Hello World with ACME and HTTP3 輕輕鬆鬆實現一個支持 ACME 自動獲取證書的,支持 HTTP3 的服務器.