{"id":23116455,"url":"https://github.com/zoroer/node-web-template","last_synced_at":"2025-04-04T01:26:20.885Z","repository":{"id":242233346,"uuid":"809035056","full_name":"zoroer/node-web-template","owner":"zoroer","description":"node-web-template是一个koa2 + mvc  + mongodb + redis 搭建的node web的标准项目模板。模板对日常登录注册的基本功能都做了内嵌，并对开发日志分割统计、接口统一拦截、返回等中间件也做了集成。做到了开箱即用！","archived":false,"fork":false,"pushed_at":"2024-07-02T03:38:26.000Z","size":5549,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T13:13:23.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoroer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-01T13:57:15.000Z","updated_at":"2024-07-02T03:38:30.000Z","dependencies_parsed_at":"2024-06-02T18:15:08.276Z","dependency_job_id":"13154056-2d59-43bb-a548-2f09e332f06b","html_url":"https://github.com/zoroer/node-web-template","commit_stats":null,"previous_names":["zoroer/node-web-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroer%2Fnode-web-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroer%2Fnode-web-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroer%2Fnode-web-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroer%2Fnode-web-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoroer","download_url":"https://codeload.github.com/zoroer/node-web-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247105672,"owners_count":20884478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T04:16:18.157Z","updated_at":"2025-04-04T01:26:20.861Z","avatar_url":"https://github.com/zoroer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-web-template\n\u003e node-web-template是一个Koa2 + MVC + Mongodb + Redis 搭建的Node Web的标准项目模板。模板对日常登录注册的基本功能都做了内嵌，并对开发日志分割统计、接口统一拦截、返回等中间件也做了集成。做到了开箱即用！\n\n## 技术栈\nNode V16 + Koa2 + MVC设计模式 + Mongodb + Mongoose + Redis\n\n## 模板特色功能：\n1. 依据Koa2搭建的Node Web标准模板。\n2. 对常用的模块（登录/注册/用户查询等）做了内嵌，开箱即用！\n3. 模板封装了项目开发中常用的中间件：日志分割，接口统一拦截，统一返回封装，JWT登录等，避免重复造轮子。\n4. 集成pm2常用配置，一键管理node应用。\n\n## 项目运行\n\n1. 拉取模板：\n* 全局安装 uni-web-cli 并选择\"node-web\"即可按提示使用：\nuni-web-cli：https://github.com/zoroer/uni-web-cli.git\n* 直接拉取通用模板：\nnode-web-template：git clone https://github.com/zoroer/node-web-template.git\n\n2. cd \"xxx\" xxx为node-web-template所在的目录\n\n3. npm install\n\n4. npm run start\n\n\u003e **Tips：项目运行前 请先安装并启动 mongoDB(port:28017，启动服务时注意)，保证数据的正常存取和所有功能正常使用！**\n\n## 代码结构\n```\n.\n├── LICENSE\n├── README.md\n├── app\n│   ├── controller\n│   │   ├── login.js\n│   │   ├── test.js\n│   │   └── user.js\n│   ├── global.js\n│   ├── helper\n│   │   ├── captcha.js\n│   │   ├── fetch.js\n│   │   └── index.js\n│   ├── middleware\n│   │   ├── gateway.js\n│   │   ├── index.js\n│   │   └── resFilter.js\n│   ├── model\n│   │   ├── test.js\n│   │   └── user.js\n│   ├── plugin\n│   │   └── autoEnhanceIndex.js\n│   ├── router\n│   │   ├── index.js\n│   │   ├── login.js\n│   │   ├── test.js\n│   │   └── user.js\n│   └── service\n│       ├── login.js\n│       ├── test.js\n│       └── user.js\n├── build\n│   └── new_tag.sh\n├── conf\n│   └── index.js\n├── index.js\n├── logger.js\n├── logs\n│   ├── app\n│   │   ├── logs.log\n│   └── web\n│       ├── logs.log\n├── mongoDB\n│   └── index.js\n├── package-lock.json\n├── package.json\n├── screenshots\n│   └── node-web.png\n├── web\n│   └── testAPI.html\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoroer%2Fnode-web-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoroer%2Fnode-web-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoroer%2Fnode-web-template/lists"}