# koa2-0814 **Repository Path**: aibabelx/koa2-0814 ## Basic Information - **Project Name**: koa2-0814 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-06-23 - **Last Updated**: 2022-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1-安装koa2 npm install koa --save -g # 2-安装生成器 npm install koa-generator -g # 在代码目录里执行命令: koa2 文件名 # 如果koa2不起作用,就用这个命令 npx koa2-generator # package.json { "name": "model-package", "version": "0.1.0", "private": true, "scripts": { "dev": "cross-env NODE_ENV=dev nodemon ./bin/www", "prd": "cross-env NODE_ENV=production nodemon ./bin/www" }, "dependencies": { "debug": "^4.1.1", "jsonwebtoken": "^8.5.1", "koa": "^2.7.0", "koa-bodyparser": "^4.2.1", "koa-convert": "^1.2.0", "koa-json": "^2.0.2", "koa-logger": "^3.2.0", "koa-onerror": "^4.1.0", "koa-router": "^7.4.0", "koa-static": "^5.0.0", "koa-views": "^6.2.0", "lodash": "^4.17.21", "module-alias": "^2.2.2", "mysql2": "^2.2.5", "pug": "^2.0.3", "require-directory": "^2.1.1", "sequelize": "^6.6.2", "validator": "^13.6.0", "axios": "^0.18.0" }, "devDependencies": { "cross-env": "^7.0.3", "nodemon": "^1.19.1" }, "_moduleAliases": { "@root": ".", "@core": "core", "@config": "config/config.js", "@model": "model", "@middlewares": "middlewares", "@validator": "validator", "@lib": "lib", "@wx": "wx" } }