{"id":36728131,"url":"https://github.com/yuedun/issue-tracking-system","last_synced_at":"2026-01-12T12:03:43.148Z","repository":{"id":21657848,"uuid":"24978700","full_name":"yuedun/issue-tracking-system","owner":"yuedun","description":"基于Koa框架，layui，Sequelize.js5.x版本，使用TypeScript开发的事务跟踪系统","archived":false,"fork":false,"pushed_at":"2023-02-24T22:58:21.000Z","size":1220,"stargazers_count":2,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T23:54:48.988Z","etag":null,"topics":["async","await","koa2","layui","pm2","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuedun.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}},"created_at":"2014-10-09T07:39:30.000Z","updated_at":"2024-02-20T18:04:56.000Z","dependencies_parsed_at":"2023-01-13T21:37:00.639Z","dependency_job_id":null,"html_url":"https://github.com/yuedun/issue-tracking-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yuedun/issue-tracking-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuedun%2Fissue-tracking-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuedun%2Fissue-tracking-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuedun%2Fissue-tracking-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuedun%2Fissue-tracking-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuedun","download_url":"https://codeload.github.com/yuedun/issue-tracking-system/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuedun%2Fissue-tracking-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["async","await","koa2","layui","pm2","sequelize","typescript"],"created_at":"2026-01-12T12:03:42.864Z","updated_at":"2026-01-12T12:03:43.142Z","avatar_url":"https://github.com/yuedun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"issue-tracking-system\n==========\n\n基于koa框架，需nodejs 7.X以上，stable版本，sequelize已升级到5.x版本\n\n# 项目运行\n\n复制config-sample.ts改名为config.ts\n\n安装依赖：\n\u003e npm install\n\n启动服务：\n\u003e`npm run dev`\n\nlinux下npm脚本：\n\n\u003e \"dev\": \"DEBUG=yuedun:*\u0026 cd ./dest ./node_modules/.bin/nodemon ./dest/bin/www.js\",\n\nwindows:\n\u003e \"dev\": \"set DEBUG=yuedun:*\u0026 cd ./dest \u0026 nodemon ./bin/www.js\",\n\nkoa.js获取url参数\n\n`ctx.request.body`获取`post body`中的参数\n`ctx.captures`获取`/user/123` `/user/:id`此类URL中的id,`ctx.captures`是个数组，按照URL中参数的顺序，ES6可以用这种方法接收：\n`let [id] = ctx.captures`，如果是多个参数`/user/123/yuedun` `/user/:id/:name` `let [id, name] = ctx.captures`\n`ctx.query`获取`/user/?name=yuedun`\n\n## pm2运行项目\n\u003e pm2 start pm2.json --env production\n\n`--env production`参数是为了设置环境变量，由pm2.json中的配置决定设置什么样的环境变量\n```\n//pm2.json\n\"env\": {\n    \"NODE_ENV\": \"development\",\n    \"PORT\": 3002\n},\n\"env_production\" : {\n    \"NODE_ENV\": \"production\",\n    \"PORT\": 3003\n}\n```\n如果不加参数则默认使用\n```\n\"env\": {\n    \"NODE_ENV\": \"development\",\n    \"PORT\": 3002\n}\n```\n结果：`NODE_ENV=development`,`PORT=3002`\n\n加`--env production`则使用的是\n```\n\"env_production\" : {\n    \"NODE_ENV\": \"production\",\n    \"PORT\": 3003\n}\n```\n结果：`NODE_ENV=production`,`PORT=3003`\n#项目架构\n使用的框架和技术包括：TypeScript,Koa2,Sequelize\n\n# 需求设计\n\n提供两个入口：\n* 管理平台直接进入发起请求，可以获取到来源页面url\n* 直接输入网址，发起请求\n\n需要填写的栏位有标题，主体内容，紧急程度，第一二协助人，问题来源，后台需要记录的有发起人信息，解决状态，顶起（我也有该问题）\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuedun%2Fissue-tracking-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuedun%2Fissue-tracking-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuedun%2Fissue-tracking-system/lists"}