{"id":26574003,"url":"https://github.com/geekrishabh/host-cra","last_synced_at":"2026-04-09T01:31:36.037Z","repository":{"id":123766369,"uuid":"120607730","full_name":"geekrishabh/Host-cra","owner":"geekrishabh","description":"Server to host CRA app ","archived":false,"fork":false,"pushed_at":"2023-01-03T22:38:06.000Z","size":507,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T12:14:43.769Z","etag":null,"topics":["cra","create-react-app","express","heroku","heroku-deployment","host","node","react","server"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/geekrishabh.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":"2018-02-07T11:41:20.000Z","updated_at":"2023-03-04T08:37:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc33c8df-29cc-49a5-a113-976968be9e70","html_url":"https://github.com/geekrishabh/Host-cra","commit_stats":null,"previous_names":["rishabh-pandey-sternx/host-cra","geekrishabh/host-cra"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geekrishabh/Host-cra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekrishabh%2FHost-cra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekrishabh%2FHost-cra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekrishabh%2FHost-cra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekrishabh%2FHost-cra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geekrishabh","download_url":"https://codeload.github.com/geekrishabh/Host-cra/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekrishabh%2FHost-cra/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cra","create-react-app","express","heroku","heroku-deployment","host","node","react","server"],"created_at":"2025-03-23T01:32:28.472Z","updated_at":"2026-04-09T01:31:36.015Z","avatar_url":"https://github.com/geekrishabh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-react-app with a ExpressJs server on Heroku\n\nA minimal example of using a ExpressJs backend (server for API, proxy, \u0026 routing) with a [React frontend](https://github.com/facebookincubator/create-react-app).\n\nTo deploy a frontend-only React app, use the static-site optimized  \n▶️ [create-react-app]\n\n⤵️ [Switching from create-react-app-buildpack](#switching-from-create-react-app-buildpack)?\n\n\n## Design Points\n\nA combo of two npm projects, the backend server and the frontend UI. So there are two `package.json` configs and thereforce two places to run `npm` commands:\n\n  1. [`package.json`](package.json) for [Node server](server/) \u0026 [Heroku deploy](https://devcenter.heroku.com/categories/deployment)\n      * `heroku-postbuild` script compiles the webpack bundle during deploy\n      * `cacheDirectories` includes `react-ui/node_modules/` to optimize build time\n  2. [`react-ui/package.json`](react-ui/package.json) for [React web UI](react-ui/)\n      * generated by [create-react-app](https://github.com/facebookincubator/create-react-app)\n\nIncludes a minimal [Node Cluster](https://nodejs.org/docs/latest-v8.x/api/cluster.html) [implementation](server/index.js) to parallelize the single-threaded Node process across the available CPU cores.\n\n## Demo\n\n[Demo deployment](https://cra-node.herokuapp.com/): example API call from the React UI is [fetched with a relative URL](react-ui/src/App.js#L16) that is served by an Express handler in the Node server.\n\n\n## Deploy to Heroku\n\n```bash\ngit clone https://github.com/GeekRishabh/Host-cra.git\ncd Host-cra/\nheroku create\ngit push heroku master\n```\n\nThis deployment will automatically:\n\n  * detect [Node buildpack](https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-nodejs)\n  * build the app with\n    * `npm install` for the Node server\n    * `heroku-postbuild` for create-react-app\n  * launch the web process with `npm start`\n    * serves `../react-ui/build/` as static files\n    * customize by adding API, proxy, or route handlers/redirectors\n\n⚠️ Using npm 5’s new `package-lock.json`? We resolved a compatibility issue.\n\n👓 More about [deploying to Heroku](https://devcenter.heroku.com/categories/deployment).\n  \n\n## Local Development\n\n### Run the API Server\n\nIn a terminal:\n\n```bash\n# Initial setup\nnpm install\n\n# Start the server\nnpm start\n```\n\n\n### Run the React UI\n\nThe React app is configured to proxy backend requests to the local Node server. (See [`\"proxy\"` config](react-ui/package.json))\n\nIn a separate terminal from the API server, start the UI:\n\n```bash\n# Always change directory, first\ncd react-ui/\n\n# Initial setup\nnpm install\n\n# Start the server\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekrishabh%2Fhost-cra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekrishabh%2Fhost-cra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekrishabh%2Fhost-cra/lists"}