ray-template/docs/assets/guide_start.md.UeTHeYfH.js

9 lines
4.4 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as s,o as i,c as t,a3 as e}from"./chunks/framework.D8G7yXPy.js";const d=JSON.parse('{"title":"快速开始","description":"","frontmatter":{},"headers":[],"relativePath":"guide/start.md","filePath":"guide/start.md"}'),n={name:"guide/start.md"};function l(p,a,h,r,k,o){return i(),t("div",null,[...a[0]||(a[0]=[e(`<h1 id="快速开始" tabindex="-1">快速开始 <a class="header-anchor" href="#快速开始" aria-label="Permalink to &quot;快速开始&quot;">​</a></h1><p>本文使用 Ray Template v6。v5 项目请先查看<a href="./../migration.html">版本分界</a>。</p><h2 id="启动工作台" tabindex="-1">启动工作台 <a class="header-anchor" href="#启动工作台" aria-label="Permalink to &quot;启动工作台&quot;">​</a></h2><p>准备 Node.js 26.13.0 和 pnpm 12.16.1。以下以 nvm 为例:</p><div class="language-sh vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">sh</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/XiaoDaiGua-Ray/ray-template.git</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">cd</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> ray-template</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">nvm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">nvm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> use</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">npm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --global</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> pnpm@12.16.1</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --frozen-lockfile</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> env:check</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> dev</span></span></code></pre></div><p>打开 <a href="http://127.0.0.1:9527/ray-template/" target="_blank" rel="noreferrer">http://127.0.0.1:9527/ray-template/</a>,如果端口被占用,以 Vite 输出的地址为准。使用预填表单登录,再打开「表格 → 远端查询与分页」或「布局实验室」。也可直接体验<a href="https://xiaodaigua-ray.github.io/ray-template/" target="_blank" rel="noreferrer">在线演示</a>。</p><div class="warning custom-block"><p class="custom-block-title">演示与真实业务</p><p>预填表单、会话和 Mock 用于展示前端工作流。对外部署真实业务前,接入自己的认证、服务端权限校验和 API。</p></div><h2 id="启动文档" tabindex="-1">启动文档 <a class="header-anchor" href="#启动文档" aria-label="Permalink to &quot;启动文档&quot;">​</a></h2><p>在同一个工作区运行 <code>pnpm docs:dev</code>。按终端地址打开 <code>/ray-template/docs/</code>,可以直接操作 TablePro、条码和布局示例。</p><h2 id="相关文档" tabindex="-1">相关文档 <a class="header-anchor" href="#相关文档" aria-label="Permalink to &quot;相关文档&quot;">​</a></h2><p><a href="./first-page.html">第一个业务页面</a> · <a href="./../migration.html">v5 与 v6 的版本分界</a> · <a href="./tooling.html">工程检查与部署</a></p><p><a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/82511cf6f52b5c902f566ccde62f3fcd976c3084/package.json" target="_blank" rel="noreferrer">运行时与依赖清单</a> · <a href="https://github.com/XiaoDaiGua-Ray/ray-template/blob/82511cf6f52b5c902f566ccde62f3fcd976c3084/docs/architecture.md" target="_blank" rel="noreferrer">项目目录与启动链路</a></p>`,12)])])}const F=s(n,[["render",l]]);export{d as __pageData,F as default};