{"id":27072726,"url":"https://github.com/ilukemagic/aids-protection-node","last_synced_at":"2025-04-05T23:19:52.679Z","repository":{"id":143197577,"uuid":"476226767","full_name":"ilukemagic/aids-protection-node","owner":"ilukemagic","description":"基于 Koa + TypeScript + sequelize + MySQL 的 预防艾滋病宣传 的小程序后端","archived":false,"fork":false,"pushed_at":"2022-09-02T02:24:58.000Z","size":4229,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:30:28.559Z","etag":null,"topics":["database","javascript","koa","mysql","nodejs","sequelize","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ilukemagic.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}},"created_at":"2022-03-31T08:55:59.000Z","updated_at":"2024-08-04T03:36:07.000Z","dependencies_parsed_at":"2023-05-23T19:30:40.958Z","dependency_job_id":null,"html_url":"https://github.com/ilukemagic/aids-protection-node","commit_stats":null,"previous_names":["awalter0411/aids-protection-node","alanreumy/aids-protection-node","ilukemagic/aids-protection-node"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Faids-protection-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Faids-protection-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Faids-protection-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilukemagic%2Faids-protection-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilukemagic","download_url":"https://codeload.github.com/ilukemagic/aids-protection-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247412031,"owners_count":20934784,"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":["database","javascript","koa","mysql","nodejs","sequelize","typescript"],"created_at":"2025-04-05T23:19:52.133Z","updated_at":"2025-04-05T23:19:52.671Z","avatar_url":"https://github.com/ilukemagic.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aids-protection-node\n\n基于 Koa + TypeScript + sequelize + MySQL 的 预防艾滋病宣传 的小程序后端\n\n适合 Node.js 或 Typescript 初学者学习使用\n\n## 使用方法\n\n- 克隆\n\n  `git clone git@github.com:ZimTang/aids-protection-node.git`\n\n- 安装\n\n  `npm install`\n\n- 在项目根目录下创建.env 文件\n\n  ```.env\n  // 数据库主机\n  DATABASE_HOST = 'localhost'\n  // 数据库名\n  DATABASE_DB = 'aidsprotection'\n  // 数据库类型\n  DATABASE_DIALECT = 'mysql'\n  // 数据库用户\n  DATABASE_USER = 'root'\n  // 数据库密码\n  DATABASE_PASSWORD = '123456'\n  // 连接池最大连接数\n  DATABASE_POOP_MAX = 5\n  // 连接池最小连接数\n  DATABASE_POOL_MIN = 0\n  DATABASE_POOL_ACQUIRE = 30000\n  DATABASE_POOL_IDLE = 100000\n  // 开启服务的端口\n  PORT = 3000\n  ```\n\n- 创建对应名称的数据库\n- 使用 openssl 生成一对私钥和公钥\n\n  ```shell\n  openssl\n\n  \u003e genrsa -out private.key 1024\n  \u003e rsa -in private.key -pubout -out public.key\n  ```\n\n- 将生成的`private.key`和`public.key`放在`src/app/keys`文件夹下\n- 运行\n\n  `npm run dev`\n\n## 主要功能\n\n- [x] 用户请求\n- [x] 问题请求\n- [x] 回答请求\n- [x] 评论请求\n- [x] 咨询医生\n- [x] 知识竞赛\n- [x] 积分系统\n\n## 在线文档\n\n[红丝带小卫士](https://www.apifox.cn/apidoc/shared-0ed5faa7-187b-4cc4-ae59-8ae68d76e88e/api-17410691)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filukemagic%2Faids-protection-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filukemagic%2Faids-protection-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filukemagic%2Faids-protection-node/lists"}