{"id":17990624,"url":"https://github.com/little-buddy/midway-boilerplate","last_synced_at":"2025-04-04T03:44:24.027Z","repository":{"id":188342179,"uuid":"678564158","full_name":"little-buddy/midway-boilerplate","owner":"little-buddy","description":"基于 midway@3.0.0+ 搭建的快速开发模版","archived":false,"fork":false,"pushed_at":"2023-08-17T21:51:58.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T15:31:16.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/little-buddy.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-14T21:09:08.000Z","updated_at":"2023-08-14T23:07:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4c41e8e-5a9f-42b0-b2dc-382d13af7276","html_url":"https://github.com/little-buddy/midway-boilerplate","commit_stats":null,"previous_names":["little-buddy/midway-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-buddy%2Fmidway-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-buddy%2Fmidway-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-buddy%2Fmidway-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/little-buddy%2Fmidway-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/little-buddy","download_url":"https://codeload.github.com/little-buddy/midway-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117746,"owners_count":20886439,"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":[],"created_at":"2024-10-29T19:18:37.015Z","updated_at":"2025-04-04T03:44:24.007Z","avatar_url":"https://github.com/little-buddy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于 midway@3.0.0+ 搭建的快速开发模版\n\n## QuickStart\n\n\u003c!-- add docs here for user --\u003e\n\nsee [midway docs][midway] for more detail.\n\n### Development\n\n```bash\n$ npm i\n$ npm run dev\n$ open http://localhost:7001/\n```\n\n### Deploy\n\n```bash\n$ npm start\n```\n\n### npm scripts\n\n- Use `npm run lint` to check code style.\n- Use `npm test` to run unit test.\n\n[midway]: https://midwayjs.org\n\n### 简单的 HTTP 请求\n\n```JS\nimport {makeHttpRequest} from \"@midwayjs/core\"\n\nconst result = await makeHttpRequest(url,{\n  method: 请求类型\n  dataType: 返回数据类型\n  contentType: 发送数据类型, post 需要\n  data:{} get query\n  timeout 超时\n  headers\n})\n\n还是用 axios 替换保险\n```\n\n### swagger 修饰器列表\n\n```js\n@ApiBody\n@ApiExcludeEndpoint\n@ApiExcludeController\n@ApiHeader\n@ApiHeaders\n@ApiOperation\n@ApiProperty\n@ApiPropertyOptional\n@ApiResponseProperty\n@ApiQuery\n@ApiResponse\n@ApiTags\n@ApiExtension\n@ApiBasicAuth\n@ApiBearerAuth\n@ApiCookieAuth\n@ApiOAuth2\n@ApiSecurity\n@ApiParam\n@ApiExtraModel\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittle-buddy%2Fmidway-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittle-buddy%2Fmidway-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittle-buddy%2Fmidway-boilerplate/lists"}