{"id":28265081,"url":"https://github.com/jiaronggu/reactcoretemplate","last_synced_at":"2026-04-11T03:32:22.810Z","repository":{"id":39564196,"uuid":"151108858","full_name":"JiarongGu/ReactCoreTemplate","owner":"JiarongGu","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-03T15:17:06.000Z","size":2677,"stargazers_count":10,"open_issues_count":21,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T18:04:25.902Z","etag":null,"topics":["code-splitting","netcore","react","redux","ssr"],"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/JiarongGu.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":"2018-10-01T15:09:42.000Z","updated_at":"2025-04-17T07:50:37.000Z","dependencies_parsed_at":"2023-02-01T07:01:16.483Z","dependency_job_id":null,"html_url":"https://github.com/JiarongGu/ReactCoreTemplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JiarongGu/ReactCoreTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiarongGu%2FReactCoreTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiarongGu%2FReactCoreTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiarongGu%2FReactCoreTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiarongGu%2FReactCoreTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JiarongGu","download_url":"https://codeload.github.com/JiarongGu/ReactCoreTemplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JiarongGu%2FReactCoreTemplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["code-splitting","netcore","react","redux","ssr"],"created_at":"2025-05-20T10:13:13.029Z","updated_at":"2026-04-11T03:32:22.779Z","avatar_url":"https://github.com/JiarongGu.png","language":"TypeScript","readme":"# ReactCoreTemplate\nExample for .Net Core + React + Redux + Typescript + Server Rendering + Code Split + Scss  \nUsing creat-react-app (react-script) with react-app-rewired  \n  \nhope this can help someone who is seeking for .net core + react\n\n## Getting Started\nThis project is using .net core 2.2, please ensure you have the right sdk.  \nhttps://dotnet.microsoft.com/download/dotnet-core/2.2\n\nRun the complie in ClientApp before you start the .net core webapp\n```\nnpm run build:all\n```\nThe proxy for api to .net core using https port 5001 \n\n## Rewire Overrides\n[react-app-rewired](https://github.com/timarney/react-app-rewired]) for override react-script default config.  \ncurrently used for:\n- apply typescript alias\n- override config to generate server bundle\n  \n## SCSS Typing\ncss-module typing is a marjor problem for using typescript, so I used a helper library to do it.  \n[typed-scss-modules](https://github.com/skovy/typed-scss-modules) for generate scss.d.ts files to use for css module.   \ngenerate typing files use:\n```\nnpm run scss\n```\nwatch scss file changes auto-generate use:\n```\nnpm run scss:watch\n```\n  \n## Server Side Rendering\nbecause this project used .net core to follow that we need to create a separated bundle for server, which current react-script does not support, so I did some hack\n  \nbuild in server mode when pass ``--server`` in ``react-app-rewire build``, the bundle will be built in server mode.  \n  \npostbuild scripts to move the files from ``build`` to ``dist`` to avoid file clean up by second run of react-script.  \n\n``server.tsx`` uses ``aspnet-prerendering`` as interface wrapper for .net core use\n  \n## Redux Creator\n[redux-creator](https://github.com/JiarongGu/banbrick-redux-creator) is a library I created for redux code-spliting, and also used for ssr. It will gives a simpler use for redux, also ``processLocationTasks`` and ``getEffectTasks`` to ensure the data is completely loaded when rendering server html.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiaronggu%2Freactcoretemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiaronggu%2Freactcoretemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiaronggu%2Freactcoretemplate/lists"}