{"id":16874753,"url":"https://github.com/pedrogao/lin-cms-koa","last_synced_at":"2025-04-11T11:25:31.811Z","repository":{"id":92512167,"uuid":"169738976","full_name":"pedrogao/lin-cms-koa","owner":"pedrogao","description":"A simple and practical CMS implememted by koa","archived":false,"fork":false,"pushed_at":"2019-06-18T08:54:17.000Z","size":53,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T07:51:10.274Z","etag":null,"topics":["cms","koa","lin"],"latest_commit_sha":null,"homepage":null,"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/pedrogao.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-08T13:27:48.000Z","updated_at":"2023-02-21T17:10:33.000Z","dependencies_parsed_at":"2023-08-21T02:02:49.195Z","dependency_job_id":null,"html_url":"https://github.com/pedrogao/lin-cms-koa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Flin-cms-koa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Flin-cms-koa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Flin-cms-koa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrogao%2Flin-cms-koa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrogao","download_url":"https://codeload.github.com/pedrogao/lin-cms-koa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248382857,"owners_count":21094563,"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":["cms","koa","lin"],"created_at":"2024-10-13T15:34:00.201Z","updated_at":"2025-04-11T11:25:31.800Z","avatar_url":"https://github.com/pedrogao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lin-cms-koa\n\n\u003e 以 koa 实现的 lin-cms 后台部分，支持 javasript 和 typescript 双语言版本\n\n## 提示\n\n**lin-cms-koa 目前仅作为个人项目进行开发，强烈不建议用于实际项目**\n\n**已经移到了官方仓库，请查看[官方仓库](https://github.com/TaleLin/lin-cms-koa)**\n\nlin-cms 的[前端仓库](https://github.com/TaleLin/lin-cms-vue)\n\n## 开始\n\n请确保你拥有 mysql 数据库和 node.js 的运行环境，并创建名为`lin-cms2`的数据库。\n\n如果你使用 typescript 运行，那么请在`ts/app/config/secure.ts`中修改你自己的 mysql 配置。\n\n如果你使用 javascript 运行，那么请在`js/app/config/secure.js`中修改你自己的 mysql 配置。\n\n修改好后，请运行下面的命令，它会在数据库中添加一个超级管理员。\n\n```bash\nnpx jest tests/app/dao/addSuper.test.ts\n```\n\n接下来，请选择一个方式运行你的程序。\n\n**以 typescript 的方式运行**\n\n```bash\nnpm run start:dev\n```\n\n**将 typescript 编译成 javascript 的方式运行**\n\n```bash\nnpm run tsc:prod \u0026\u0026 npm run start:prod\n```\n\n**通过 javascript 的方式直接运行**\n\n```bash\nnode js/app/starter.js\n```\n\n## TODO LIST\n\n- [x] 全局异常处理\n- [x] 参数检验\n- [x] 多级路由，路由分层，路由前缀\n- [x] JWT 支持\n- [x] json 数据返回扩展\n- [x] 日志记录中间件\n- [x] ORM(typeorm)框架集成\n- [x] 配置文件驱动\n- [x] 业务\n- [x] 插件(推送)\n- [x] 将数据库操作抽象成 dto 层\n- [ ] 细节优化\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrogao%2Flin-cms-koa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrogao%2Flin-cms-koa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrogao%2Flin-cms-koa/lists"}