Skip to content

Navigation Menu

Sign in
Sign up
This repository was archived by the owner on Aug 31, 2019. It is now read-only.

Repository files navigation

项目状态

Master

Build Status Coverage Status

Develop

Build Status Coverage Status

特性

  • 支持 HTTP -> HTTP
  • 支持 HTTP -> HTTPS
  • 支持 HTTPS -> HTTP
  • 支持 HTTPS -> HTTPS
  • 支持 自定义 SSL 配置
  • 支持 WEB 界面管理

依赖安装

git submodule init
git submodule update
npm install

线上运行

cp server/config/default.js server/config/local.js
cp pm2.sample.json pm2.json
npm run start

协作开发

  • 启动服务器
npm run dev
  • 执行测试
npm run test # 运行所有测试
npm run test -- -g network # 只测试 network
npm run cover # 测试覆盖率
  • 代码风格/质量检查
npm run lint

目录结构

.
├── client // 前端
└── server
 ├── api // API路由
 ├── config // 配置文件
 ├── cron // 计划任务
 ├── lib // 通用函数
 ├── middleware // 中间件
 ├── model // 数据模型
 ├── service // 业务逻辑
 └── app.js // 入口文件
 └── cron.js // 计划任务入口文件

关联项目

About

No description or website provided.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /