An open API service indexing awesome lists of open source software.

https://github.com/yyz945947732/gzteacher-cms-server

本地运行 cms 文件的服务
https://github.com/yyz945947732/gzteacher-cms-server

cms cms-server gzteacher serve server

Last synced: about 1 year ago
JSON representation

本地运行 cms 文件的服务

Awesome Lists containing this project

README

          

# @gzteacher/cms-server



Version


PRs Welcome


GitHub license

⚠️ 大部分 cms 语法并不支持,仅以调试静态文件为主 ⚠️

🚀 本地运行 cms 文件的服务

- 支持热更新
- 运行时忽略 cms 语法
- 支持加载 cms 语法的资源
- 运行时支持 include 嵌套
- 自动打开浏览器

## Quick start

### 本地安装

```sh
npm install -D @gzteacher/cms-server
```

`package.json` 文件添加以下命令:

```json
"scripts": {
"start": "cms-run"
}
```

执行命令运行服务:

```bash
npm run start
```

### 全局安装

```sh
npm install -g @gzteacher/cms-server
```

通过 `npx` 直接运行:

```sh
npx cms-run
```

## Options

```sh
-h --help Print this help
-v --version Print @gzteacher/cms-server version number
-p --port Set access port (default 3009)
```

## LICENSE

[MIT](https://github.com/yyz945947732/@gzteacher/cms-server/blob/master/LICENSE)

---

This project is created using [generator-stupid-cli](https://github.com/yyz945947732/generator-stupid-cli).