{"id":16384974,"url":"https://github.com/saber2pr/httpserver-ioc","last_synced_at":"2025-10-29T13:37:06.002Z","repository":{"id":108571201,"uuid":"186647068","full_name":"Saber2pr/httpserver-ioc","owner":"Saber2pr","description":"\u003e httpserver-ioc framework.","archived":false,"fork":false,"pushed_at":"2019-05-16T02:31:12.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T14:44:42.918Z","etag":null,"topics":["httpserver","ioc","typescript"],"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/Saber2pr.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-05-14T15:09:09.000Z","updated_at":"2019-06-23T06:50:13.000Z","dependencies_parsed_at":"2023-04-20T21:32:37.359Z","dependency_job_id":null,"html_url":"https://github.com/Saber2pr/httpserver-ioc","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/Saber2pr%2Fhttpserver-ioc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fhttpserver-ioc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fhttpserver-ioc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saber2pr%2Fhttpserver-ioc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saber2pr","download_url":"https://codeload.github.com/Saber2pr/httpserver-ioc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240122087,"owners_count":19751134,"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":["httpserver","ioc","typescript"],"created_at":"2024-10-11T04:13:05.869Z","updated_at":"2025-10-29T13:37:00.941Z","avatar_url":"https://github.com/Saber2pr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @saber2pr/httpserver-ioc\n\n\u003e httpserver-ioc framework.\n\n\u003e use @saber2pr/reflect.\n\n```bash\n# from npm\nnpm install @saber2pr/httpserver-ioc\n\n# from github\ngit clone https://github.com/Saber2pr/-saber2pr-httpserver-ioc.git\n```\n\n## Feature\n\n\u003e classMeta -(parse)-\u003e astNode -(transform)-\u003e unitListener\n\n```ts\n@Injectable()\nclass UserService {\n  public getUserName() {\n    return 'saber2pr!'\n  }\n\n  public getHello() {\n    return 'Hello!'\n  }\n}\n\n@Controller('/user')\nclass UserController {\n  constructor(\n    private ContextService: ContextService,\n    @Inject('UserService') private UserService: UserService\n  ) {}\n\n  @Get('/login')\n  public login() {\n    this.ContextService.response.end(this.UserService.getUserName())\n  }\n\n  @Get('/hello')\n  public hello() {\n    this.ContextService.response.end(this.UserService.getHello())\n  }\n}\n\nnew Factory([UserController])\n  .create()\n  .listen(3001, () =\u003e console.log('http://localhost:3001'))\n// http://localhost:3001/user/login\n// http://localhost:3001/user/hello\n```\n\n---\n\n## start\n\n```bash\nnpm install\n```\n\n```bash\nnpm start\n\nnpm run dev\n\n```\n\n\u003e Author: saber2pr\n\n---\n\n## develope and test\n\n\u003e you should write ts in /src\n\n\u003e you should make test in /src/test\n\n\u003e export your core in /src/index.ts!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Fhttpserver-ioc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaber2pr%2Fhttpserver-ioc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaber2pr%2Fhttpserver-ioc/lists"}