Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linwei0201/koa-start
使用koa快速启动node server
https://github.com/linwei0201/koa-start
koa node server
Last synced: about 2 months ago
JSON representation
使用koa快速启动node server
- Host: GitHub
- URL: https://github.com/linwei0201/koa-start
- Owner: linwei0201
- Created: 2017-12-19T03:31:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-19T06:57:59.000Z (about 7 years ago)
- Last Synced: 2024-11-30T17:49:51.034Z (2 months ago)
- Topics: koa, node, server
- Size: 555 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 快速启动node server
> 使用系统: Mac
#### 1. 安装
```bash
npm i -g koa-start
```#### 2. 设置环境变量
```bash
echo "export PATH=\$PATH:~/bin/" >> ~/.bash_profile
source ~/.bash_profile
```#### 3. 设置软链
```bash
rm -rf ~/bin/koa-start
ln -s /usr/local/lib/node_modules/koa-start ~/bin/koa-start
```#### 4. 启动server
```bash
koa-start [-p] [-n]
```**参数说明**
| 参数 | 含义 | 默认值 |
| -------- | ----- | ----- |
| -p | 启用端口 | 8080 |
| -n | 当前目录下模板文件html | index.html |> 持续更新中,欢迎[提issue](https://github.com/linwei0201/koa-start/issues)