{"id":18321720,"url":"https://github.com/bryanadamss/express-ts","last_synced_at":"2025-04-09T14:34:54.008Z","repository":{"id":44073376,"uuid":"207976047","full_name":"BryanAdamss/express-ts","owner":"BryanAdamss","description":"🍢Rest API with JWT authentication and role based authorization using TypeScript Express.js and TypeORM;Fork on https://github.com/andregardi/jwt-express-typeorm","archived":false,"fork":false,"pushed_at":"2023-01-11T22:22:07.000Z","size":207,"stargazers_count":2,"open_issues_count":15,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T08:34:19.542Z","etag":null,"topics":["express","rest","restapi","ts","typeorm","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/BryanAdamss.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}},"created_at":"2019-09-12T06:01:23.000Z","updated_at":"2023-03-07T05:08:10.000Z","dependencies_parsed_at":"2023-02-09T08:16:26.883Z","dependency_job_id":null,"html_url":"https://github.com/BryanAdamss/express-ts","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/BryanAdamss%2Fexpress-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryanAdamss%2Fexpress-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryanAdamss%2Fexpress-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryanAdamss%2Fexpress-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BryanAdamss","download_url":"https://codeload.github.com/BryanAdamss/express-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055299,"owners_count":21040151,"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":["express","rest","restapi","ts","typeorm","typescript"],"created_at":"2024-11-05T18:21:02.618Z","updated_at":"2025-04-09T14:34:53.984Z","avatar_url":"https://github.com/BryanAdamss.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-ts\n🍢Rest API with JWT authentication and role based authorization using TypeScript Express.js and TypeORM;Base on https://github.com/andregardi/jwt-express-typeorm\n\n\n## 开始\n1. npm i\n2. npm start\n3. npm run migration:run\n4. 使用postman测试(注意post请求header设置Content-Type :application/json并且body选择raw，参考https://github.com/andregardi/jwt-express-typeorm/issues/3)\n5. 例如测试登录\n```\n// url\npost /auth/login\n  \n// post body(raw)\n{\n\"username\": \"admin\",\n\"password\": \"admin\"\n}\n```\n\n## 参考\n- 项目：https://github.com/andregardi/jwt-express-typeorm?source=post_page-----fbfa3cab22a4----------------------\n- 文章：https://medium.com/javascript-in-plain-english/creating-a-rest-api-with-jwt-authentication-and-role-based-authorization-using-typescript-fbfa3cab22a4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanadamss%2Fexpress-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanadamss%2Fexpress-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanadamss%2Fexpress-ts/lists"}