快速开始
本文档将引导您完成 ShipSaaS 的设置。
在开始之前,请确认网络环境和开发环境是否已经具备,参考文档获取ShipSaaS。
新建您的项目
Section titled “新建您的项目”从 GitHub 克隆模板项目仓库:
git clone https://github.com/ShipSaaS/shipsaas-fumadocs.git your-project-name
cd your-project-name移除原始远程模板项目仓库连接,并创建一个私有的 GitHub 项目仓库。
# 移除原始远程模板项目仓库git remote remove origin
# 在 GitHub 上创建一个私有仓库,并设置为远程仓库gh repo create your-project-name --private --source=. --remote=origin
# 推送代码到您的新项目仓库,并设置默认分支为 maingit push -u origin main此命令会创建一个私有 GitHub 仓库、将其设置为 origin 远程仓库,并推送代码。
安装项目依赖
Section titled “安装项目依赖”通过运行以下命令安装项目依赖:
bun install设置环境变量
Section titled “设置环境变量”将 .env.example 文件复制到 .env 作为起点。
cp .env.example .env打开环境变量文件并将变量设置为您想要的值,您可以在环境配置文档中找到有关环境变量的更多信息。
启动开发服务器
Section titled “启动开发服务器”现在您已经设置好环境变量,可以通过运行以下命令启动开发服务器:
bun run dev这将在 http://localhost:3000 上启动开发服务器,您可以访问模板网站。
现在您已经运行了 ShipSaaS,以下是一些后续步骤: