{"id":13581100,"url":"https://github.com/mikechabot/react-boilerplate","last_synced_at":"2025-06-12T14:07:14.966Z","repository":{"id":9387512,"uuid":"53346654","full_name":"mikechabot/react-boilerplate","owner":"mikechabot","description":"A slightly opinionated yet dead simple boilerplate for React 17.x, Webpack 5 and React Router v5","archived":false,"fork":false,"pushed_at":"2023-01-26T16:41:04.000Z","size":6261,"stargazers_count":173,"open_issues_count":24,"forks_count":35,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-12T14:07:07.454Z","etag":null,"topics":["boilerplate","code-splitting","css","promise","reactjs","redux","webpack","webpack5"],"latest_commit_sha":null,"homepage":"https://mikechabot.github.io/react-boilerplate/","language":"TypeScript","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/mikechabot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-07T17:57:59.000Z","updated_at":"2025-02-11T01:15:52.000Z","dependencies_parsed_at":"2023-02-14T19:31:27.986Z","dependency_job_id":null,"html_url":"https://github.com/mikechabot/react-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikechabot/react-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechabot%2Freact-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechabot%2Freact-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechabot%2Freact-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechabot%2Freact-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikechabot","download_url":"https://codeload.github.com/mikechabot/react-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechabot%2Freact-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259479592,"owners_count":22864362,"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":["boilerplate","code-splitting","css","promise","reactjs","redux","webpack","webpack5"],"created_at":"2024-08-01T15:01:58.093Z","updated_at":"2025-06-12T14:07:14.896Z","avatar_url":"https://github.com/mikechabot.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# \u003ca href='https://github.com/mikechabot/react-boilerplate'\u003e\u003cimg src='https://raw.githubusercontent.com/mikechabot/react-boilerplate/gh-pages/assets/img/header_photo.png' alt='logo' aria-label='https://github.com/mikechabot/react-boilerplate' /\u003e\u003c/a\u003e\n\nA slightly opinionated yet dead simple boilerplate for ReactJS, Webpack 4, and React Router v4.\n\n:heart: Async chunk loading\n\u003cbr /\u003e\n:heart: Typescript\n\u003cbr /\u003e\n:heart: React 17\n\u003cbr/\u003e\n:heart: Webpack 5\n\u003cbr/\u003e\n:heart: React Router v5\n\u003cbr /\u003e\n:heart: Redux v4\n\u003cbr/\u003e\n:heart: Code splitting\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e \n  \u003ca href=\"https://travis-ci.org/mikechabot/react-boilerplate\"\u003e\n    \u003cimg src=\"https://travis-ci.org/mikechabot/react-boilerplate.svg?branch=master\" alt=\"build status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://david-dm.org/mikechabot/react-boilerplate\"\u003e\n    \u003cimg src=\"https://david-dm.org/mikechabot/react-boilerplate.svg\" alt=\"dependency status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/mikechabot/react-boilerplate/pulls\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"prs welcome\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n## Table of Contents\n\n- [Live Demo](#live-demo)\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Custom Configuration](#custom-config)\n\n## \u003ca id=\"live-demo\"\u003eLive Demo\u003c/a\u003e\n\nhttp://mikechabot.github.io/react-boilerplate\n\n---\n\n## \u003ca id=\"features\"\u003eFeatures\u003c/a\u003e\n\n#### Build Process\n\n- [Typescript](https://www.typescriptlang.org/) support\n- Bundled with [webpack 5](https://webpack.js.org/configuration/)\n- Implements async chunk loading via [@loadable/react](https://loadable-components.com/)\n- Supports ES6 via [Babel](https://babeljs.io/) transpiling\n\n#### State Management\n\n- [redux-entity](https://github.com/mikechabot/redux-entity) for domain entity management\n- [redux-thunk](https://github.com/gaearon/redux-thunk) for [asynchronous actions](https://github.com/mikechabot/react-boilerplate/blob/master/src/reducers/entities/actions.ts)\n- [redux-logger](https://github.com/theaqua/redux-logger) for capturing actions\n\n#### Routing\n\n- [react-router v5](https://github.com/reactjs/react-router) for client-side [routing](https://github.com/mikechabot/react-boilerplate/blob/master/src/Root.tsx#L12)\n- [Async chunk loading](https://github.com/mikechabot/react-boilerplate/blob/master/src/components/Sections/ReactRouter/AsyncTabbedRouter.js#L15) at the `react-router` level\n\n#### HTTP\n\n- [Customizable](https://github.com/mikechabot/react-boilerplate/blob/master/src/services/data/ajax-service.js#L8), [Promise-based](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) HTTP support via [Axios](https://github.com/mzabriskie/axios)\n- Utilizes a [a generic data service](https://github.com/mikechabot/react-boilerplate/blob/master/src/services/data/data-access-service.ts#L30) to easily fetch data\n- Example of [implementing the data service](https://github.com/mikechabot/react-boilerplate/blob/master/src/services/domain/domain-service.ts#L7)\n\n#### Styling\n\n- Supports [SCSS \u0026 SASS](http://sass-lang.com/) syntax\n- Browser compatibility via [autoprefixing](https://github.com/postcss/autoprefixer)\n- [Bulma](https://bulma.io/documentation/overview/start/) for out-of-the-box styling\n\n#### Develop \u0026 Deploy\n\n- Environmental configurations for both webpack and redux\n  - **Dev**: [webpack-dev-server](https://webpack.js.org/configuration/dev-server/) with [react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin). `redux-logger` enabled\n  - **Prod**: [Express](http://expressjs.com/) server with `redux-logger` disabled\n\n---\n\n## \u003ca id=\"getting-started\"\u003eGetting Started\u003c/a\u003e\n\n1. `$ git clone https://github.com/mikechabot/react-boilerplate.git`\n2. `$ npm install`\n3. Launch environment:\n   - **Production**: `$ npm start`\n   - **Development**: `$ npm run dev`\n   - Available at http://localhost:3060\n     \u003e Update port via [config.default.json](https://github.com/mikechabot/react-boilerplate/blob/master/config/config.default.json#L3), or override via [Custom Configuration](#custom-config)\n4. Build assets for production:\n   - `$ npm run build:prod`\n\n---\n\n## \u003ca id=\"custom-config\"\u003eCustom Configuration\u003c/a\u003e\n\nUse [`cross-env`](https://github.com/kentcdodds/cross-env) or a comparable library/command to set the `ENV_CONFIG_PATH` to the path of your JSON configuration file:\n\n`$ cross-env ENV_CONFIG_PATH=/path/to/config.json npm start`\n\n\u003e **Note**: This path is made available to Webpack **only**, however the contents of the file are stamped on a global variable during the build process (`process.env.APP_CONFIG`, see [webpack.config.js](https://github.com/mikechabot/react-boilerplate/blob/master/webpack.config.js#L46)), which is then accessible via the [ConfigService](https://github.com/mikechabot/react-boilerplate/blob/master/src/services/common/config-service.js#L19).\n\nIf your configuration is loaded successfully, you can expect to see the following indicator during startup:\n\n```\n** Using custom configuration located at \"/path/to/config.json\" **\n```\n\n#### Example\n\nUsing configuration file @ `C:\\_workspaces\\custom-config.json`\n\n```bash\n$ cross-env ENV_CONFIG_PATH=\"C:\\_workspaces\\custom-config.json\" npm start\n\n\u003e react-boilerplate@5.0.0 start C:\\_workspaces\\react-boilerplate\n\u003e npm run build:prod \u0026\u0026 npm run start-prod-server\n\n\n\u003e react-boilerplate@5.0.0 build:prod C:\\_workspaces\\react-boilerplate\n\u003e npm run clean \u0026\u0026 cross-env NODE_ENV=production webpack --progress --colors\n\n\n\u003e react-boilerplate@5.0.0 clean C:\\_workspaces\\react-boilerplate\n\u003e rm -rf ./docs\n\n** Using custom configuration located at \"C:\\_workspaces\\custom-config.json\" **\n                    __      __        _ __             __     __\n  _______ ___ _____/ /_____/ /  ___  (_) /__ _______  / /__ _/ /____\n / __/ -_) _ `/ __/ __/___/ _ \\/ _ \\/ / / -_) __/ _ \\/ / _ `/ __/ -_)\n/_/  \\__/\\_,_/\\__/\\__/   /_.__/\\___/_/_/\\__/_/ / .__/_/\\_,_/\\__/\\__/\n                                              /_/\n┌────────────────────────────────────────────────────────────────────┐\n│                                                                    │\n│             Mike Chabot | Version 5.0.0 | License MIT              │\n│                                                                    │\n└────────────────────────────────────────────────────────────────────┘\n\u003cs\u003e [webpack.Progress] 0% compiling\n\u003cs\u003e [webpack.Progress] 10% building 0/0 modules 0 active\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikechabot%2Freact-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikechabot%2Freact-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikechabot%2Freact-boilerplate/lists"}