{"id":15751589,"url":"https://github.com/wangkailang/react-typscript-express-form","last_synced_at":"2026-02-01T20:36:03.004Z","repository":{"id":79408472,"uuid":"96496616","full_name":"wangkailang/react-typscript-express-form","owner":"wangkailang","description":"form example with react typescript as client, and express as server","archived":false,"fork":false,"pushed_at":"2019-07-17T08:31:08.000Z","size":1253,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T10:51:01.710Z","etag":null,"topics":["express","react-bootstrap","react-router-dom","redux","reselect","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/wangkailang.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":"2017-07-07T03:44:49.000Z","updated_at":"2023-03-04T04:08:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"928a97cd-717f-4eee-b119-f369f616b32f","html_url":"https://github.com/wangkailang/react-typscript-express-form","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.43243243243243246","last_synced_commit":"f9c599f4f35fefb3a51ce3073b854ff1f7c9728a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangkailang/react-typscript-express-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkailang%2Freact-typscript-express-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkailang%2Freact-typscript-express-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkailang%2Freact-typscript-express-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkailang%2Freact-typscript-express-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangkailang","download_url":"https://codeload.github.com/wangkailang/react-typscript-express-form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangkailang%2Freact-typscript-express-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28989312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T18:17:03.387Z","status":"ssl_error","status_checked_at":"2026-02-01T18:16:57.287Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","react-bootstrap","react-router-dom","redux","reselect","typescript"],"created_at":"2024-10-04T07:01:49.931Z","updated_at":"2026-02-01T20:36:02.987Z","avatar_url":"https://github.com/wangkailang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-typscript-express-form\n\n[![Build Status](https://travis-ci.org/wangkailang/react-typscript-express-form.svg?branch=master)](https://travis-ci.org/wangkailang/react-typscript-express-form)\n\nform example with react typescript as client, and express as server\n\n## 记录\n1. package.json 设置proxy指向server端口。这样可以通过fetch('/api/resource')获取server api。\n2. npm library concurrently 同时开启多个端口。\n\n## 资源\n1. https://github.com/Microsoft/TypeScript-React-Starter\n2. https://github.com/piotrwitek/react-redux-typescript-guide#create-store\n\n## data fetch (whatwg-fetch)\n```typescript\n// fetch example\nfetch('/api/hello').then(res =\u003e res.json()).then(json =\u003e {\n  console.log('parsed', json);\n}).catch(ex =\u003e {\n  throw new Error(ex);\n});\n\n// async await\nasync function fetchApi(url: string) {\n  const datas = await fetch(url).then(res =\u003e res.json());;\n}\nfetchApi('/api/hello');\n```\n\n## use redux-devtools\nlink: https://github.com/piotrwitek/react-redux-typescript-guide#create-store\n```typescript\ndeclare const window: Window \u0026 { devToolsExtension: any,  __REDUX_DEVTOOLS_EXTENSION__: any };\nconst store = createStore\u003cStoreState\u003e(\n  reducers,\n  window.__REDUX_DEVTOOLS_EXTENSION__ \u0026\u0026 window.__REDUX_DEVTOOLS_EXTENSION__() \n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangkailang%2Freact-typscript-express-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangkailang%2Freact-typscript-express-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangkailang%2Freact-typscript-express-form/lists"}