0.0.7 • Published 2 years ago

petro-request v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

petro-request

安装

npm install petro-request -g

使用

petro-request命令符为petro

# 初始化项目
petro init

# 填写 项目名称、项目描述
? 请输入项目名称: [项目名称]
? 请输入项目描述: Base on petro-cli

# 进入项目
cd [项目名称]

# 安装依赖
npm install

# 运行
# Mac OS or Windows
npm run dev 

# Linux
npm run dev:linux

# 启动访问
http://localhost:3001/

本地开发

petro-request命令符为petro

# 临听,自动刷新代码改动
npm run watch

# 本地调试 init为模拟CLI初始化参数 
npm run dev init