{"id":13680827,"url":"https://github.com/cereallarceny/cra-ssr","last_synced_at":"2025-04-05T02:09:07.718Z","repository":{"id":25857005,"uuid":"106729040","full_name":"cereallarceny/cra-ssr","owner":"cereallarceny","description":"[DEPRECATED] Server-side rendering with create-react-app, React Router v4, Helmet, Redux, and Thunk","archived":false,"fork":false,"pushed_at":"2022-12-08T17:53:40.000Z","size":1078,"stargazers_count":483,"open_issues_count":33,"forks_count":117,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-29T01:09:14.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/cereallarceny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["cereallarceny"]}},"created_at":"2017-10-12T18:13:59.000Z","updated_at":"2025-02-20T01:18:56.000Z","dependencies_parsed_at":"2023-01-14T03:33:27.766Z","dependency_job_id":null,"html_url":"https://github.com/cereallarceny/cra-ssr","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/cereallarceny%2Fcra-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cereallarceny%2Fcra-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cereallarceny%2Fcra-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cereallarceny%2Fcra-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cereallarceny","download_url":"https://codeload.github.com/cereallarceny/cra-ssr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276164,"owners_count":20912288,"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":[],"created_at":"2024-08-02T13:01:22.523Z","updated_at":"2025-04-05T02:09:07.704Z","avatar_url":"https://github.com/cereallarceny.png","language":"JavaScript","funding_links":["https://github.com/sponsors/cereallarceny"],"categories":["Tools","JavaScript"],"sub_categories":["React"],"readme":"# Deprecation notice\n\nIt didn't take long.  The web has grown a lot since I first developed this project.  Lo and behold [Jared Palmer](https://github.com/jaredpalmer) has beat me to it.  I'm going to shut down shop at cra-ssr in favor of a better solution: [Razzle](https://github.com/jaredpalmer/razzle).\n\n**To anyone looking to use cra-ssr, I highly suggest you check out Razzle instead.**\n\n---\n\n# Server-side rendering in Create React App\n\n_SSR with all the goodies, without ejecting._\n\n- [Link to Tutorial](https://medium.com/@cereallarceny/server-side-rendering-in-create-react-app-with-all-the-goodies-without-ejecting-4c889d7db25e)\n- [Deployed application](https://cra-ssr.herokuapp.com/)\n- [Github Gist for server folder](https://gist.github.com/cereallarceny/ee1b86227aabaf4a4b2a3144b84dfaa2)\n\n## Goals\n\n- **Zero modifications to your existing CRA application**\n- Create React App **without ejecting**\n- React 16 (fiber, baby!)\n- React Router v4 (with Thunk)\n- **Full SEO support** via React Helmet\n- **Preloaded page data** via async/await and React Frontload\n- **Code splitting** via React Loadable\n- Server-side **cookie support**\n\n## Examples\n\n- Multiple pages (`/`, `/about`)\n- **User-specific pages with preloaded data** set on a timeout to fake an API call (`/profile/1`, `/profile/2`)\n- **Basic authentication with cookie storage** (`/login`, `/dashboard`, `/logout`)\n- Not found (404, etc.) page\n\n## Installation\n\n1.  Install dependencies via `yarn install`\n2.  To run locally, use `yarn start`\n3.  To run under SSR mode, use `yarn build \u0026\u0026 yarn serve`\n\n## Why?\n\nServer-side rendering is a requirement for many modern web applications to appear correctly in search engines and social media parsers.\n\n**Question:** Have you ever created a web application with multiple pages only to find out that your meta descriptions weren't page specific?\u003cbr /\u003e\n**Answer:** _Server-side rendering_\n\n**Question:** Have you ever created a web application where users had individual profile pages that required pre-loading of metadata?\u003cbr /\u003e\n**Answer:** _Server-side rendering_\n\n**Question:** Have you ever created a web application with a lot of content on your page that ends up taking a long time for your users to load in poor Internet conditions?\u003cbr /\u003e\n**Answer:** _Server-side rendering_\n\n## Contribute\n\nDo what you normally do - fork and PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcereallarceny%2Fcra-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcereallarceny%2Fcra-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcereallarceny%2Fcra-ssr/lists"}