{"id":14989358,"url":"https://github.com/peter-mouland/react-lego","last_synced_at":"2025-10-09T09:36:34.064Z","repository":{"id":146394996,"uuid":"60677214","full_name":"peter-mouland/react-lego","owner":"peter-mouland","description":"React-lego : incrementally add more cool stuff to your react app","archived":false,"fork":false,"pushed_at":"2018-06-06T06:31:44.000Z","size":46058,"stargazers_count":413,"open_issues_count":4,"forks_count":36,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-19T15:09:27.744Z","etag":null,"topics":["koa","react","react-hot-reload","react-router","ssr","webpack"],"latest_commit_sha":null,"homepage":"http://react-lego.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peter-mouland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2016-06-08T07:18:36.000Z","updated_at":"2025-04-18T16:58:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c4b1a37-b433-4f94-8d90-1d308356c016","html_url":"https://github.com/peter-mouland/react-lego","commit_stats":{"total_commits":131,"total_committers":3,"mean_commits":"43.666666666666664","dds":"0.022900763358778664","last_synced_commit":"ff53618d58796fb4bd8df658fd5e7e8b21aac494"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peter-mouland/react-lego","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-mouland%2Freact-lego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-mouland%2Freact-lego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-mouland%2Freact-lego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-mouland%2Freact-lego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter-mouland","download_url":"https://codeload.github.com/peter-mouland/react-lego/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-mouland%2Freact-lego/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001122,"owners_count":26083022,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["koa","react","react-hot-reload","react-router","ssr","webpack"],"created_at":"2024-09-24T14:18:12.164Z","updated_at":"2025-10-09T09:36:34.028Z","avatar_url":"https://github.com/peter-mouland.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"_This version is currently being update for 2018.  The previous react-lego, with older version of tech and upgrade paths, can be found [react-lego-2017](https://github.com/peter-mouland/react-lego-2017)_\n\n# React Lego 2018 [![CircleCI](https://circleci.com/gh/peter-mouland/react-lego.svg?style=svg)](https://circleci.com/gh/peter-mouland/react-lego)\n\n\u003e The building blocks of a react app\n\nThis repo demonstrates how to plug in other technologies, one block at a time, into React.\n\n### Hear me out!\n\nThe concept is to use GitHub's branch-comparison screens to quickly demo the code changes that are needed for *only* the technology you are interested in.\n\nA client-side React app which is fully tested and production ready on the `master` branch.  \nFrom Master, *Server-side Rendering (SSR)* has been added with  `Koa v2` (for `Express` see [react-lego-2016](https://github.com/peter-mouland/react-lego-2016)).  \nEvery other branch then adds one more technology, with the smallest possible changes.\n\nAll branches, have been setup with [continuous deployment](https://github.com/peter-mouland/react-lego/wiki/Continuous-Deployement).\n\n[\u003e\u003e More about the react-lego concept](https://github.com/peter-mouland/react-lego/wiki)\n\n### What else the Base React app have?\n\nIt is production ready and fully tested :\n\n * [x] CSS ([Sass-loader](https://github.com/jtangelder/sass-loader), [Autoprefixer](https://github.com/postcss/autoprefixer))\n * [x] [tests](/tests/README.md) (unit, functional, end-to-end + smoke)\n * [x] Code linting with [eslint](http://eslint.org/) (CSS + JS linting)\n * [x] CI integration with [CircleCI](https://circleci.com/)\n * [x] Continuous deployment with [Heroku](http://www.heroku.com/)\n\n*All* other branches include the above and build on this base.\n\n## Technology to Add:\n\n_All branches use [babel v7](https://github.com/babel/babel), [React v16.2](https://github.com/facebook/react), [react-router v4](https://github.com/reactjs/react-router), [Webpack v4](https://github.com/webpack/webpack) unless otherwise stated_\n \nThe `Code changes` column is where you go if you want to see how the code changed from the previous branch.\n This is a great place to see how to do it yourself.\n \n | Category | Code changes | App size (node_modules) | Comparator | kb |  |\n | --- | --- | --- | --- | --- | --- |\n | Client-side Rendering | [React](https://github.com/peter-mouland/react-lego/tree/master/) | 23kb (+152kb) |  |  | \n | Server-side Rendering | [add Koa v2](https://github.com/peter-mouland/react-lego/compare/master...ssr) | 22kb (+153kb) |  \n | CSS | [add CSS Imports](https://github.com/peter-mouland/react-lego/compare/ssr...ssr-css)| 22kb (+153kb ) |   CSS Modules  | | [\u003e\u003e More about adding CSS](https://github.com/peter-mouland/react-lego/wiki/CSS) |\n | State Management | [add Redux](https://github.com/peter-mouland/react-lego/compare/ssr-css...ssr-css-redux)| 22kb (+188kb) |  | | [\u003e\u003e More about adding Redux](https://github.com/peter-mouland/react-lego/wiki/Redux) |\n| | | | | | |\n\n \n ### _Previous branches still to be updated_\n \u003e These branches are from React Lego 2017 and are on my 'todo' list to update!\n \n | Category | New Tech | Code changes | Client-side App (kb) | Comparator | kb |  |\n | --- | --- | --- | --- | --- | --- | --- | \n | Client-side Rendering |  |  | | Preact \u003e [Preact code vs React](https://github.com/peter-mouland/react-lego/compare/master...preact) | tbc | [\u003e\u003e More about adding Preact](https://github.com/peter-mouland/react-lego/wiki/Preact)\n | State Management | [Async routes](https://github.com/peter-mouland/react-lego/tree/ssr-css-redux-async) | [add async routes](https://github.com/peter-mouland/react-lego/compare/ssr-css-redux...ssr-css-redux-async) | tbc |  | | [\u003e\u003e More about adding Promise middleware](https://github.com/peter-mouland/react-lego/wiki/Redux-Promise-Middleware)\n | Assets | Importing SVGs |\n | Assets | Responsive Images with PNGs |\n | Data API | [GraphQL](https://github.com/peter-mouland/react-lego/tree/ssr-css-redux-async-graphql) |  [add GraphQL](https://github.com/peter-mouland/react-lego/compare/ssr-css-redux-async...ssr-css-redux-async-graphql) | tbc | Apollo | tbc |\n \n \n## What else ?\n\nI have a few articles that may be interesting to read covering all the branches in this repo: [\u003e\u003e wiki](https://github.com/peter-mouland/react-lego/wiki)\n\n__________\n** Something missing?  Please see [react-lego-2017](https://github.com/peter-mouland/react-lego-2017) or [react-lego-2016](https://github.com/peter-mouland/react-lego-2016) or submit a feature request!**\n__________\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-mouland%2Freact-lego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-mouland%2Freact-lego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-mouland%2Freact-lego/lists"}