# server_api_mock **Repository Path**: jinghang/server_api_mock ## Basic Information - **Project Name**: server_api_mock - **Description**: nodejs 脚手架,提供简单api - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 生成 ``` npm install -g express-generator ``` ``` express --no-view --git server_api_mock ``` # 代码检查 ## ESLINT * 作用:实时显示代码错误 * 安装命令 ``` npm install eslint -g ``` * 初始化配置文件 .eslintr.js ``` eslint --init ``` * vscode 也需要安装 eslint 插件 # 开发 ``` npm run dev-w ``` # 参考 https://www.runoob.com/nodejs/nodejs-restful-api.html