{"id":13487405,"url":"https://github.com/brickyang/egg-ts-boilerplate","last_synced_at":"2025-04-17T12:43:29.962Z","repository":{"id":143742049,"uuid":"114947014","full_name":"brickyang/egg-ts-boilerplate","owner":"brickyang","description":"Boilerplate for Egg.js app using TypeScript.","archived":false,"fork":false,"pushed_at":"2019-03-13T01:34:16.000Z","size":13,"stargazers_count":61,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T06:11:19.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/brickyang.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}},"created_at":"2017-12-21T01:15:11.000Z","updated_at":"2024-12-22T13:45:24.000Z","dependencies_parsed_at":"2024-01-16T09:05:24.216Z","dependency_job_id":"400afd30-a957-4b31-9f5c-3e11613f679c","html_url":"https://github.com/brickyang/egg-ts-boilerplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickyang%2Fegg-ts-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickyang%2Fegg-ts-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickyang%2Fegg-ts-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brickyang%2Fegg-ts-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brickyang","download_url":"https://codeload.github.com/brickyang/egg-ts-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249342162,"owners_count":21254235,"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-07-31T18:00:58.888Z","updated_at":"2025-04-17T12:43:29.941Z","avatar_url":"https://github.com/brickyang.png","language":"TypeScript","funding_links":[],"categories":["Boilerplates","仓库"],"sub_categories":["脚手架"],"readme":"[**中文版**](https://github.com/brickyang/egg-ts-boilerplate/blob/master/README.zh-CN.md)\n\nThis is an example about how to use TypeScript in Egg.js. It shows how to use `controller`, `service`, config, database, schedule task and extention with TypeScript in Egg.js.\n\n## Usage\n\n```bash\n$ npm install\n$ npm run dev\n\n#  visit http://127.0.0.1:7001 (might be another port if 7001 is not available).\n```\n\nThis exmple imports `egg-mongo-native` plugin to use MongoDB but default to `enable: false` in case no MongoDB client is running in your environment. Feel free to enable and try it.\n\nEgg.js is not written by TypeScript, but it provides `index.d.ts` so you are free to use TypyScript in your Egg.js apps. The key point is to `declare` your own interface in `index.d.ts`.\n\nRead more: [如何在 Egg.js 中使用 TypeScript(Chinese)](https://brickyang.github.io/2017/12/21/%E5%A6%82%E4%BD%95%E5%9C%A8-Egg-js-%E4%B8%AD%E4%BD%BF%E7%94%A8-TypeScript/)\n\n[MIT](https://github.com/brickyang/egg-ts-boilerplate/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrickyang%2Fegg-ts-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrickyang%2Fegg-ts-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrickyang%2Fegg-ts-boilerplate/lists"}