{"id":20497121,"url":"https://github.com/alexcambose/react-boilerplate","last_synced_at":"2026-04-12T15:36:33.718Z","repository":{"id":95849232,"uuid":"129896900","full_name":"alexcambose/react-boilerplate","owner":"alexcambose","description":"React boilerpate based on Webpack. Features React, ES2017 and SASS support.","archived":false,"fork":false,"pushed_at":"2018-11-23T21:02:35.000Z","size":569,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-05T18:56:23.525Z","etag":null,"topics":["browser","dom","react-router","react-router-dom","reactjs","redux","sass","webpack","webpack-boilerplate","webpack4"],"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/alexcambose.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-04-17T11:54:15.000Z","updated_at":"2023-08-18T15:18:24.000Z","dependencies_parsed_at":"2023-04-12T09:47:19.305Z","dependency_job_id":null,"html_url":"https://github.com/alexcambose/react-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexcambose/react-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Freact-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Freact-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Freact-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Freact-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcambose","download_url":"https://codeload.github.com/alexcambose/react-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Freact-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266287824,"owners_count":23905461,"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":["browser","dom","react-router","react-router-dom","reactjs","redux","sass","webpack","webpack-boilerplate","webpack4"],"created_at":"2024-11-15T18:10:05.260Z","updated_at":"2026-04-12T15:36:28.685Z","avatar_url":"https://github.com/alexcambose.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-boilerplate\nBoilerpate\n\n| Features       \n| -------------\n| [**ES2017 Javascript**](https://babeljs.io/docs/plugins/preset-es2017/)\n| [**React**](https://reactjs.org/)\n| [**React router**](https://reacttraining.com/react-router/)\n| [**React router redux**](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux)\n| [**Redux**](https://redux.js.org/)\n| [**Eslint**](https://eslint.org/)\n| [**Webpack**](https://webpack.js.org/)\n| [**Sass**](https://sass-lang.com/)\n\n\n## Installation\n[Clone](https://git-scm.com/docs/git-clone) or download this repository.\n```bash\ncd react-boilerplate \u0026\u0026 npm install\n```\n\n## Usage\n`npm run build` - Builds in *development* mode\n\n`npm run build:prod` - Builds in *production* mode\n\n`npm run watch` - Watches and builds in *development* mode\n\n`npm run serve` - Starts *webpack-dev-server*\n\n`npm run analize` - Builds in *development* mode and opens [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer) report file\n\n`npm run analize:prod` - Builds in *production* mode and opens [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer) report file\n\n## Other notes\n#### Defining routes\nThis boilerplate offers a clear and simple way of writing code and because of this I decided that the current way of defining routes using *react router* it's a bit ambiguous and not scalable (including a `\u003cRoute /\u003e` component in each component). All the routes are specified in `routes/index.js` and are rendered using a **recursive** function (so that it can also handle infinite nesting) just like other frameworks like [Angular](https://angular.io/guide/router#configuration), [Vue](https://router.vuejs.org/en/essentials/nested-routes.html).\n\n```jst\n//...component imports...\n\n// example component, nested routes are rendered inside the parent component with children\nconst SomeComponent = ({ children }) =\u003e (\n    \u003cdiv\u003e\n        Hello\n        {children}\n    \u003c/div\u003e\n);\n\nexport default [\n    {\n        path: '/',\n        component: SomeComponent,\n        routes: [\n            {\n                path: 'home',\n                component: SomeComponent,\n                routes: [\n                    {\n                        path: 'stats',\n                        component: SomeOtherOtherComponent\n                    },\n                ],\n            },\n            {\n                path: 'user',\n                component: SomeComponent,\n                routes: [\n                    {\n                        path: 'profile',\n                        component: SomeOtherOtherComponent\n                    },\n                ],\n            },\n        ],\n    },\n];\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcambose%2Freact-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcambose%2Freact-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcambose%2Freact-boilerplate/lists"}