Skip to content

linwei0201/koa-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

快速启动node server

使用系统: Mac

1. 安装

npm i -g koa-start

2. 设置环境变量

echo "export PATH=\$PATH:~/bin/" >> ~/.bash_profile
source ~/.bash_profile

3. 设置软链

rm -rf ~/bin/koa-start
ln -s /usr/local/lib/node_modules/koa-start ~/bin/koa-start

4. 启动server

koa-start [-p] [-n]

参数说明

参数 含义 默认值
-p 启用端口 8080
-n 当前目录下模板文件html index.html

持续更新中,欢迎提issue

About

使用koa快速启动node server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published