Mirobody
The canonical registry of human health — roughly two thousand standardized indicators, clinical and lifestyle, resolved into one language.
翻訳待ち
リポジトリ情報はまだ収集していません。
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗健康长寿平台:高级健康技能学习、数字化健康长寿解决方案、优质健康产品推荐、在线全球化支付结算(Stripe)与税费缴纳。
docs/PAYMENT-OPS-RUNBOOK.mddocs/PAYMENT-RELEASE-CHECKLIST.mddocs/SECURITY-SELF-CHECK.md若未安装,请从 nodejs.org 安装 LTS 版本(会同时安装 npm)。
cd health-longevity-platform
npm install
npm run dev
浏览器访问:http://localhost:5173
pk_test_ 开头)。cp .env.example .env
# 编辑 .env,设置 VITE_STRIPE_PUBLISHABLE_KEY=pk_test_xxx
sk_test_),切勿放入前端代码。cd server
npm install
STRIPE_SECRET_KEY=sk_test_xxx node create-payment-intent.js
http://localhost:4242,在 .env 中增加:
VITE_PAYMENT_INTENT_API=http://localhost:4242/create-payment-intent
npm run dev 后,打开「支付结算」页即可看到 Stripe 支付表单并完成测试支付。双入口(推荐):在 .env 中填写您在 longevityconsult.vip(或其它域名)上已部署的两个咨询页完整地址,可带 端口 与路径,例如:
VITE_CONSULT_PROFESSIONAL_URL=https://longevityconsult.vip:8443/pro
VITE_CONSULT_GENERAL_URL=https://longevityconsult.vip:8444/general
保存后重新执行 npm run dev。打开「健康长寿方案」将先看到两个卡片,分别跳转到上述链接(新标签页)。
可选 Coze 内置对话:若仍需要平台内嵌智能体:
server 目录):
cd server
npm install
COZE_API_KEY=pat_xxx COZE_BOT_ID=xxx npm run coze
COZE_BASE=https://api.coze.com。.env 中配置 VITE_COZE_PROXY=http://localhost:4243(或线上代理地址)。VITE_HUMAN_CONTACT_URL=mailto:[email protected]。health-longevity-platform/
├── index.html
├── package.json
├── vite.config.js
├── .env.example
├── src/
│ ├── main.jsx
│ ├── App.jsx
│ ├── index.css
│ ├── components/
│ │ ├── Layout.jsx / Layout.css
│ │ └── PaymentForm.jsx
│ └── pages/
│ ├── Home.jsx / Home.css
│ ├── HealthSkills.jsx
│ ├── Solutions.jsx
│ ├── Products.jsx
│ ├── Payment.jsx
│ ├── PaymentSuccess.jsx
│ └── Tax.jsx
└── server/ # 可选后端
├── package.json
├── create-payment-intent.js # Stripe PaymentIntent
└── coze-chat.js # Coze 智能体 API 代理
npm run build
npm run preview # 本地预览构建结果
将 dist/ 部署到任意静态托管;支付相关接口需单独部署后端并配置 VITE_PAYMENT_INTENT_API。
health-longevity-platform 所在目录)。npm run build,Output Directory 填 dist(Vercel 检测到 Vite 会自动填)。VITE_CONSULT_PROFESSIONAL_URL、VITE_CONSULT_GENERAL_URL(健康长寿方案双入口外链,可含端口)VITE_STRIPE_PUBLISHABLE_KEY(若使用支付)VITE_COZE_PROXY(若使用 Coze,填你部署的后端地址)VITE_PAYMENT_INTENT_API(若支付后端单独部署,填该 API 地址)VITE_HUMAN_CONTACT_URL(可选)https://xxx.vercel.app。说明:项目内已包含 vercel.json,所有路由(如 /health-skills、/products)会正确指向 index.html,刷新不 404。
npm run build,Publish directory:dist。VITE_* 变量。说明:项目内已包含 netlify.toml,SPA 路由已配置。
server/create-payment-intent.js)与 Coze 代理(server/coze-chat.js)需单独部署到支持 Node 的环境,例如:
server 下接口拆成 API Routes 部署。node create-payment-intent.js 或 node coze-chat.js,并配置环境变量。VITE_PAYMENT_INTENT_API、VITE_COZE_PROXY,重新部署前端或重新构建即可生效。