From d2e6acea2c46510efaada94849de29a483e9dc5c Mon Sep 17 00:00:00 2001 From: wehub-resource-sync Date: Mon, 13 Jul 2026 10:44:06 +0000 Subject: [PATCH] docs: make Chinese README the default --- README.md | 116 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 61 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index 1cf3278..76b8b10 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -## Welcome to your new SaaS App! 🎉 + +> [!NOTE] +> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。 +> [English](./README.en.md) · [原始项目](https://github.com/wasp-lang/open-saas) · [上游 README](https://github.com/wasp-lang/open-saas/blob/HEAD/README.md) +> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。 + +## 欢迎使用你的新 SaaS 应用!🎉
@@ -11,84 +17,84 @@ https://github.com/user-attachments/assets/3856276b-23e9-455e-a564-b5f26f4f0e98 -You've decided to build a SaaS app with the Open SaaS template. Great choice! +你决定使用 Open SaaS 模板来构建 SaaS 应用,很棒的选择! -This template is: +本模板具备以下特点: -1. fully open-source -2. completely free to use and distribute -3. comes with a ton of features out of the box! -4. ready to work with your favorite AI coding tool or agent (Claude Code, Cursor, Codex, OpenCode, etc.) +1. 完全开源(fully open-source) +2. 可免费使用与分发 +3. 开箱即用,自带大量功能! +4. 可与你喜爱的 AI 编程工具或智能体(Claude Code、Cursor、Codex、OpenCode 等)配合使用 -🧑‍💻 Check it out in action here: [OpenSaaS.sh](https://opensaas.sh) -📚 Check out the Docs here: [Open SaaS Docs](https://docs.opensaas.sh) +🧑‍💻 在此查看实际效果:[OpenSaaS.sh](https://opensaas.sh) +📚 在此查看文档:[Open SaaS Docs](https://docs.opensaas.sh) -## What's inside? +## 里面有什么? -The template itself is built on top of some very powerful tools and frameworks, including: +模板本身构建在一系列强大的工具与框架之上,包括: -- 🐝 [Wasp](https://wasp.sh) - a full-stack React, NodeJS, Prisma framework with superpowers -- 🚀 [Astro](https://starlight.astro.build/) - Astro's lightweight "Starlight" template for documentation and blog -- 💸 [Stripe](https://stripe.com), [Polar.sh](https://polar.sh), or [Lemon Squeezy](https://lemonsqueezy.com/) - for products and payments -- 💅 [ShadCN UI](https://tailwindcss.com) - for components & styling (plus admin dashboard!) -- 🤖 [AI-Ready](https://docs.opensaas.sh/) - Custom Plugins, Skills, & Rules for AI-assisted coding with Claude Code, Cursor, or your favorite AI-assisted coding tool -- 📈 [Plausible](https://plausible.io) or [Google](https://analytics.google.com/) Analytics -- 🤖 [OpenAI](https://openai.com) - OpenAI API w/ function calling example -- 📦 [AWS S3](https://aws.amazon.com/s3/) - for file uploads -- 📧 [SendGrid](https://sendgrid.com), [MailGun](https://mailgun.com), or SMTP - for email sending -- 🧪 [Playwright](https://playwright.dev) - end-to-end tests with Playwright +- 🐝 [Wasp](https://wasp.sh) - 具备超强能力的全栈 React、NodeJS、Prisma 框架 +- 🚀 [Astro](https://starlight.astro.build/) - Astro 轻量级「Starlight」文档与博客模板 +- 💸 [Stripe](https://stripe.com), [Polar.sh](https://polar.sh), 或 [Lemon Squeezy](https://lemonsqueezy.com/) - 用于产品与支付 +- 💅 [ShadCN UI](https://tailwindcss.com) - 用于组件与样式(还包含管理后台!) +- 🤖 [AI-Ready](https://docs.opensaas.sh/) - 面向 Claude Code、Cursor 或你喜爱的 AI 辅助编程工具的自定义插件、技能与规则 +- 📈 [Plausible](https://plausible.io) 或 [Google](https://analytics.google.com/) Analytics +- 🤖 [OpenAI](https://openai.com) - 含函数调用(function calling)示例的 OpenAI API +- 📦 [AWS S3](https://aws.amazon.com/s3/) - 用于文件上传 +- 📧 [SendGrid](https://sendgrid.com), [MailGun](https://mailgun.com), 或 SMTP - 用于发送邮件 +- 🧪 [Playwright](https://playwright.dev) - 使用 Playwright 的端到端测试 -Because we're using Wasp as the full-stack framework, we can leverage a lot of its features to build our SaaS in record time, including: +由于我们使用 Wasp 作为全栈框架,可以借助其众多特性快速构建 SaaS,包括: -- 🔐 [Full-stack Authentication](https://wasp.sh/docs/auth/overview) - Email verified + social Auth in a few lines of code. -- ⛑ [End-to-end Type Safety](https://wasp.sh/docs/data-model/operations/overview) - Type your backend functions and get inferred types on the front-end automatically, without the need to install or configure any third-party libraries. Oh, and type-safe Links, too! -- 🤖 [Jobs](https://wasp.sh/docs/advanced/jobs) - Run cron jobs in the background or set up queues simply by defining a function in the config file. -- 🚀 [One-command Deploy](https://wasp.sh/docs/advanced/deployment/overview) - Easily deploy your DB, Server, & Client with one commaned to [Railway](https://railway.app) or [Fly.io](https://fly.io) via the CLI. Or deploy manually to any other hosting serivce of your choice. +- 🔐 [Full-stack Authentication](https://wasp.sh/docs/auth/overview) - 几行代码即可实现邮箱验证 + 社交登录。 +- ⛑ [End-to-end Type Safety](https://wasp.sh/docs/data-model/operations/overview) - 为后端函数添加类型,前端即可自动推断类型,无需安装或配置任何第三方库。对了,还有类型安全的链接! +- 🤖 [Jobs](https://wasp.sh/docs/advanced/jobs) - 在配置文件中定义函数,即可在后台运行定时任务或设置队列。 +- 🚀 [One-command Deploy](https://wasp.sh/docs/advanced/deployment/overview) - 通过 CLI 一条命令即可将数据库、服务器和客户端轻松部署到 [Railway](https://railway.app) 或 [Fly.io](https://fly.io)。也可手动部署到你选择的任何其他托管服务。 -You also get access to Wasp's diverse, helpful community if you get stuck or need help. +若遇到问题或需要帮助,你还可以加入 Wasp 多元且友善的社区。 - 🤝 [Wasp Discord](https://discord.gg/aCamt5wCpS) -## Getting Started +## 快速开始 -### Simple Instructions +### 简要说明 -First, to install the latest version of [Wasp](https://wasp.sh/) on macOS, Linux, or Windows with WSL, run the following command: +首先,在 macOS、Linux 或带 WSL 的 Windows 上安装最新版 [Wasp](https://wasp.sh/),请运行以下命令: ```bash npm i -g @wasp.sh/wasp-cli ``` -Then, create a new SaaS app with the following command: +然后,使用以下命令创建新的 SaaS 应用: ```bash wasp new -t saas ``` -This will create a **clean copy of the Open SaaS template** into a new directory, and you can start building your SaaS app right away! +这会在新目录中创建 **Open SaaS 模板的干净副本**,你可以立即开始构建自己的 SaaS 应用! -### Detailed Instructions +### 详细说明 -For everything you need to know about getting started and using this template, check out the [Open SaaS Docs](https://docs.opensaas.sh). +关于入门与使用本模板的一切信息,请参阅 [Open SaaS Docs](https://docs.opensaas.sh). -We've documented everything in great detail, including installation instructions, pulling updates to the template, guides for integrating services, SEO, deployment, and more. 🚀 +我们已详尽记录所有内容,包括安装说明、拉取模板更新、服务集成指南、SEO、部署等。🚀 -## Getting Help & Providing Feedback +## 获取帮助与提供反馈 -There are two ways to get help or provide feedback (and we try to always respond quickly!): +有两种方式获取帮助或提供反馈(我们会尽量快速回复!): 1. [Open an issue](https://github.com/wasp-lang/open-saas/issues) -2. [Wasp Discord](https://discord.gg/aCamt5wCpS) -- please direct questions to the #🙋questions forum channel +2. [Wasp Discord](https://discord.gg/aCamt5wCpS) -- 请将问题发至 #🙋questions 论坛频道 -## Development Tools +## 开发工具 -### Code Quality Tools +### 代码质量工具 -This repository includes comprehensive code quality tooling to help maintain code standards: +本仓库包含完善的代码质量工具,帮助维护代码规范: -#### Prettier (Code Formatting) +#### Prettier(代码格式化) -Prettier is configured for automatic code formatting across all JavaScript, TypeScript, and other supported files. +Prettier 已配置为自动格式化所有 JavaScript、TypeScript 及其他受支持文件。 ```bash # Check if files are formatted correctly @@ -98,9 +104,9 @@ npm run prettier:check npm run prettier:format ``` -#### ESLint (Code Linting) +#### ESLint(代码检查) -ESLint is configured with TypeScript and React support to catch potential bugs and enforce code quality standards. +ESLint 已配置 TypeScript 与 React 支持,用于发现潜在缺陷并强制执行代码质量标准。 ```bash # Run ESLint to check for issues @@ -110,19 +116,19 @@ npm run lint npm run lint:fix ``` -The ESLint configuration includes: +ESLint 配置包括: -- TypeScript support with `@typescript-eslint` -- React and React Hooks linting -- Sensible defaults tuned for a SaaS application -- Automatic support for CommonJS (.cjs), ES Modules (.mjs), and TypeScript files +- 通过 `@typescript-eslint` 提供 TypeScript 支持 +- React 与 React Hooks 检查 +- 针对 SaaS 应用调优的合理默认设置 +- 自动支持 CommonJS(.cjs)、ES Modules(.mjs)和 TypeScript 文件 -Both Prettier and ESLint checks are automatically run in CI/CD pipelines to ensure code quality. +Prettier 与 ESLint 检查会在 CI/CD 流水线中自动运行,以确保代码质量。 -For information about other development tools used to maintain derived projects (like opensaas.sh and template-test), see [tools/README.md](./tools/README.md). +有关用于维护衍生项目(如 opensaas.sh 和 template-test)的其他开发工具,请参阅 [tools/README.md](./tools/README.md)。 -## Contributing +## 贡献 -Note that we've tried to get as many of the core features of a SaaS app into this template as possible, but there still might be some missing features or functionality. +请注意,我们已尽量将 SaaS 应用的核心功能纳入本模板,但可能仍有一些功能缺失。 -We could always use some help tying up loose ends: contributions are welcome! Check out [CONTRIBUTING.md](/CONTRIBUTING.md) for more details. +我们始终欢迎帮助收尾完善:欢迎贡献!详情请参阅 [CONTRIBUTING.md](/CONTRIBUTING.md)。