{"id":22130786,"url":"https://github.com/vellengs/typerx","last_synced_at":"2025-06-11T23:05:45.285Z","repository":{"id":26894643,"uuid":"110304400","full_name":"vellengs/typerx","owner":"vellengs","description":"A lightweight typescript annotation rest based extra (express、 mongoose、 angular、zorro、ng-alain ...).","archived":false,"fork":false,"pushed_at":"2023-01-24T06:20:09.000Z","size":17181,"stargazers_count":76,"open_issues_count":60,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-31T16:08:31.491Z","etag":null,"topics":["cms","express","fullstack","mongodb","ng-alain","ng-zorro-antd","rest","swagger","typescript"],"latest_commit_sha":null,"homepage":"http://typerx.top","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/vellengs.png","metadata":{"files":{"readme":"README-zh_CN.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}},"created_at":"2017-11-11T00:08:03.000Z","updated_at":"2024-12-16T06:43:45.000Z","dependencies_parsed_at":"2023-02-13T18:32:18.501Z","dependency_job_id":null,"html_url":"https://github.com/vellengs/typerx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vellengs/typerx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellengs%2Ftyperx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellengs%2Ftyperx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellengs%2Ftyperx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellengs%2Ftyperx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vellengs","download_url":"https://codeload.github.com/vellengs/typerx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vellengs%2Ftyperx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259360804,"owners_count":22845822,"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","express","fullstack","mongodb","ng-alain","ng-zorro-antd","rest","swagger","typescript"],"created_at":"2024-12-01T18:19:57.909Z","updated_at":"2025-06-11T23:05:45.263Z","avatar_url":"https://github.com/vellengs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![typerx](https://i.imgur.com/TA79x5U.png)\n\n# typerx\n\n一个轻量基于 typescript 注解接口的可延伸扩展的系统, 专注于自动的接口维护, 让前后端开发平滑无隙。\n\n[English README](README.md)\n\n# 项目缘由\n\n近年来前端技术的野蛮发展，虽然促进了前端岗位的专业化，但逐渐的前后端的割裂也越发明显，这种沟隙不仅在后端产生也包括的系统的设计者。\n如何填补好前端、后端以及系统设计者之间的鸿沟， 这便是typerx 努力的方向。\n\n- typerx 希望帮助前端适当延展到后端, 主要是掌握接口标准化，能模拟后端接口，或者简单实现小型系统后端。\n- typerx 希望帮助后端延展到前端，对于非高交互类（无需定制复杂组件，或者基础组件）使用现成的组件、页面复用进行系统生产。\n- typerx 希望帮助设计人员，更好的迭代系统设计，保持模型、接口、代码以及文档的同步更新，更好的进行团队交流。\n\n# 项目特色\n- 项目采用 swagger 作为前后端的沟通桥梁, 由代码自动生成 swagger 标准接口文档, 然后生成前端接口模块，从而降低前后端调试难度。\n\n[巧用 Swagger 在线编辑器生成前端接口代码](https://juejin.im/post/5b3849c2f265da597901e9da)\n\n- 项目大量使用 json-schema-form 动态表单简化 CURD 页面复杂度, 这样通用的页面可以快速完成。 \n\n[动态表单 json-schema-form 的使用](https://ng-alain.com/form/getting-started)\n\n- 项目前端采用 ng-zorro 组件库、ng-alain 脚手架完成前端界面。\n\n[https://ng-alain.com/](https://ng-alain.com/)\n\n- 服务端采用 express、typescript 注解方式完成, 代码工整清晰。\n\n[Nodejs 下用mongodb 怎么写出 c# 的感觉](https://juejin.im/post/5b18eec7e51d4506825f13b5)\n\n# 功能模块\n\n### 系统管理\n- 设置管理 \n- 帐号管理  \n- 菜单管理 \n- 角色管理\n- 字典管理\n- 日志管理\n\n### 简单的 CMS 模块\n- 页面管理\n- 文章管理\n- 分类管理\n- 媒体管理\n- 小部件管理 \n\n# 项目演示\n  [typerx 演示](http://typerx.top) \n  使用 admin:888888  登录\n\n### 快速开始\n\n```bash\n# clone our repo\n# --depth 1 removes all but one .git commit history\n$ git clone --depth 1 https://github.com/vellengs/typerx.git\n\n# change directory to our repo\n$ cd typerx\n\n# import system default data\n$ npm run import\n\n# install the repo with npm\n$ npm install\n\n# start the server\n$ npm start\n\n```\n\n### 测试\n\n```\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n### 使用的技术栈\n\n#### angular \u003e= 5;\n\n[angular](https://github.com/angular/angular)\n\n#### ant design angular version zorro\n[ng-zorro](https://github.com/NG-ZORRO/ng-zorro-antd)\n\n#### ng-zorro-antd admin panel front-end framework\n[ng-alain](https://github.com/cipchk/ng-alain)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvellengs%2Ftyperx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvellengs%2Ftyperx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvellengs%2Ftyperx/lists"}