快速开始

30 秒启动

node src/server.js

没有 npm install,没有构建步骤。浏览器打开:

  • 着陆页 http://localhost:8787
  • 定价页 http://localhost:8787/pricing
  • 管理后台 http://localhost:8787/admin

演示账号

角色邮箱密码
---------
管理员admin@goship.devadmin123456
普通用户demo@goship.devdemo123456
⚠️ 上线前务必修改默认密码,并设置 SESSION_SECRET 环境变量。

三个必改文件

  1. src/config.js —— 站点名称、支持邮箱、域名、模式(demo → production)
  2. src/public/index.html —— 你的产品文案与定价
  3. content/posts/*.json —— 换成你自己的文章

常用命令

命令说明
------
node src/server.js启动(生产)
node --watch src/server.js开发模式(文件变更自动重启)
删除 data/ 目录后重启重置为全新种子数据

目录速查

src/server.js        入口:HTTP 服务 + 全部路由
src/config.js        配置中心
src/lib/db.js        JSON 数据库(原子写入)
src/lib/auth.js      scrypt 密码 + HMAC 会话
src/lib/util.js      限流/渲染/工具
src/public/          前端页面与资源
content/posts/       博客文章(JSON + Markdown)
content/docs/        本套文档