{"id":15097678,"url":"https://github.com/seven7v/node-admin","last_synced_at":"2026-02-22T16:34:05.576Z","repository":{"id":198852026,"uuid":"690869300","full_name":"Seven7v/node-admin","owner":"Seven7v","description":" Node Project 💥💥 koa.js+node.js操作后台框架","archived":false,"fork":false,"pushed_at":"2024-01-09T07:44:21.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T16:19:55.620Z","etag":null,"topics":["koa","koa2","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seven7v.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-13T03:42:58.000Z","updated_at":"2023-10-19T02:23:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb365ba8-49ed-43d2-8ba6-d8f2af7bbf16","html_url":"https://github.com/Seven7v/node-admin","commit_stats":null,"previous_names":["seven7v/node-admin"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seven7v%2Fnode-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seven7v%2Fnode-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seven7v%2Fnode-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seven7v%2Fnode-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seven7v","download_url":"https://codeload.github.com/Seven7v/node-admin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245878929,"owners_count":20687297,"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":["koa","koa2","nodejs","typescript"],"created_at":"2024-09-25T16:24:47.332Z","updated_at":"2025-10-26T04:40:01.021Z","avatar_url":"https://github.com/Seven7v.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 使用 node 实现后台\n\n### 准备工作\n\n首先需要在本地安装mysql\n\n[mysql安装地址](https://www.mysql.com/downloads/)\n\n安装后需要进行mysql初始化  这里会提示你登录密码，需要保存登录密码先登入数据库。登入后再修改密码\n\n```\nmysqld --initialize\n```\n\n执行成功后会生成data文件夹，就是初始化的内容。\n\n如果提示报错，mysql命令不可用，可以在安装的mysql文件夹下的bin中吊起终端执行。所有的mysql都要替换成`./mysql`\n\n```\n./mysqld --initialize\n```\n\n启动 MySQL\n\n```\nsystemctl start mysqld\n```\n\n查看 MySQL 运行状态\n\n```\nsystemctl status mysqld\n```\n\n需要给mysql设置密码，在项目中连接时需要配置的密码(我忘记我是不是这么配置的了)\n\n```\nmysqladmin -u root password \"new_password\";\n```\n\n执行  输入设置好的密码就可以使用了\n\n```\n./mysql -u root -p\nEnter password:*******\n```\n创建数据库\n\n```\ncreate DATABASE ADMIN\n\nuse ADMIN // 切换数据库\n```\n\n项目中安装mysql\n\n```\nnpm i mysql2\n```\n\n在database中使用并连接，下面有对应代码\n\n## 页面代码\n\n安装了nodemon `package.json`中可以使用nodemon启动项目\n\n```\n\"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" \u0026\u0026 exit 1\",\n    \"start\": \"cross-env NODE_ENV=development nodemon ./src/main.ts\"\n  },\n```\n\n\n启动项目\nnpm start\n\n克隆 [vue3-ts-admin](https://github.com/Seven7v/vue3-Ts-admin) 运行即可使用","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7v%2Fnode-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven7v%2Fnode-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7v%2Fnode-admin/lists"}