{"id":22190994,"url":"https://github.com/yuhexiong/hospital-fee-api-typescript","last_synced_at":"2026-05-18T15:37:34.709Z","repository":{"id":198611437,"uuid":"701147954","full_name":"yuhexiong/hospital-fee-api-typescript","owner":"yuhexiong","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-26T15:37:19.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T01:14:48.585Z","etag":null,"topics":["api","backend","mariadb","typescript"],"latest_commit_sha":null,"homepage":"","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/yuhexiong.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}},"created_at":"2023-10-06T03:01:34.000Z","updated_at":"2023-12-26T09:45:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"16b1a5fd-9157-4d2b-b5b5-0c23af96f6d3","html_url":"https://github.com/yuhexiong/hospital-fee-api-typescript","commit_stats":null,"previous_names":["yuhexiong/hospital-fee-api-typescript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhexiong%2Fhospital-fee-api-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhexiong%2Fhospital-fee-api-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhexiong%2Fhospital-fee-api-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhexiong%2Fhospital-fee-api-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuhexiong","download_url":"https://codeload.github.com/yuhexiong/hospital-fee-api-typescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245351757,"owners_count":20601087,"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":["api","backend","mariadb","typescript"],"created_at":"2024-12-02T12:13:50.288Z","updated_at":"2026-05-18T15:37:29.687Z","avatar_url":"https://github.com/yuhexiong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hospital Fee API\n\n## Version\n\n- Typescript v4.9.5\n- MariaDB v10.5\n\n## ENV\n\ncopy .env.example and rename as .env\n\n```bash\nNODE_ENV=production\n\n# local database\nDB_HOST=\nDB_PORT=\nDB_USER=\nDB_PASS=\nDB_NAME=\n\n# port\nPORT =\n```\n\n## Run\n\n```bash\n# install dependencies\nnpm i\n\n# run\nnpm start\n\n# run test case\nnpm test\n\n```\n\n## API\n\n### Request\n\n`GET /getFee`\n\n    curl --location 'localhost:8080/getFee?birthday=0520102\u0026systemDate=2021-10-27'\n\n### Response\n\n    HTTP/1.1 200 OK\n    Status: 200 OK\n\n    {\"amount\": 150}\n\n### Request\n\n`POST /getPatient`\n\n    curl --location 'localhost:8080/getPatient' \\\n    --header 'Content-Type: application/json' \\\n    --data '{\"patientId\":3, \"systemDate\":\"2012-10-27\"}'\n\n### Response\n\n    HTTP/1.1 200 OK\n    Status: 200 OK\n    Content-Type: application/json\n\n    {\n        \"patient\": {\n            \"id\": 3,\n            \"name\": \"莊小云\",\n            \"birth\": \"0771003\",\n            \"gender\": \"女\",\n            \"age\": 24,\n            \"nationality\": \"台灣\"\n        },\n        \"amount\": 150\n    }\n\n---\n\n## [TypeORM](https://github.com/typeorm/typeorm)\n\n## MariaDB\n\n- [Error Code](https://mariadb.com/docs/reference/es10.4/error-codes/#error-codes-in-10-4)\n\n### docs\n\n- [Indices](https://github.com/typeorm/typeorm/blob/master/docs/indices.md)\n- [Entites](https://github.com/typeorm/typeorm/blob/master/docs/entities.md)\n- [One-to-one relations](https://github.com/typeorm/typeorm/blob/master/docs/one-to-one-relations.md)\n- [Many-to-one / one-to-many](https://github.com/typeorm/typeorm/blob/master/docs/many-to-one-one-to-many-relations.md)\n- [Many-to-many relations](https://github.com/typeorm/typeorm/blob/master/docs/many-to-many-relations.md)\n- [Swagger](https://swagger.io/specification/)\n\n## Test\n\n- [Mocha](https://mochajs.org/api/mocha)\n- [Chai](https://www.chaijs.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhexiong%2Fhospital-fee-api-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuhexiong%2Fhospital-fee-api-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhexiong%2Fhospital-fee-api-typescript/lists"}