{"id":14976443,"url":"https://github.com/mackentoch/react-redux-graphql-apollo-bootstrap-webpack-starter","last_synced_at":"2025-10-09T22:13:48.396Z","repository":{"id":47227046,"uuid":"71637232","full_name":"MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter","owner":"MacKentoch","description":"react js + redux + graphQL + Apollo + react router + hot reload + devTools + bootstrap + webpack starter","archived":false,"fork":false,"pushed_at":"2019-02-08T05:00:40.000Z","size":5780,"stargazers_count":125,"open_issues_count":4,"forks_count":32,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-08-03T01:18:52.251Z","etag":null,"topics":["apollo","apollo-client","boilerplate","bootstrap","graphql","nodejs","postcss","react","react-apollo","react-hot-loader-3","react-router","react-router-v4","reactjs","redux","redux-devtools","redux-devtools-extension","router","scaphold","webpack","webpack3"],"latest_commit_sha":null,"homepage":"https://mackentoch.github.io/react-redux-graphql-apollo-bootstrap-webpack-starter","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/MacKentoch.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}},"created_at":"2016-10-22T12:20:32.000Z","updated_at":"2024-06-15T22:19:52.000Z","dependencies_parsed_at":"2022-08-30T14:50:28.240Z","dependency_job_id":null,"html_url":"https://github.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacKentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacKentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacKentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacKentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MacKentoch","download_url":"https://codeload.github.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacKentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002129,"owners_count":26083307,"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":["apollo","apollo-client","boilerplate","bootstrap","graphql","nodejs","postcss","react","react-apollo","react-hot-loader-3","react-router","react-router-v4","reactjs","redux","redux-devtools","redux-devtools-extension","router","scaphold","webpack","webpack3"],"created_at":"2024-09-24T13:53:53.709Z","updated_at":"2025-10-09T22:13:48.365Z","avatar_url":"https://github.com/MacKentoch.png","language":"JavaScript","funding_links":["https://www.paypal.me/ErwanDatin/"],"categories":[],"sub_categories":[],"readme":"Full ES6+ React + React-Router + Redux + GraphQL + Apollo + Bootstrap with Hot Reload and redux-devtools STARTER\n==========\n\n\u003e My new `React + redux project starter`. This time I add `graphQL` and `Apollo Client`.\nThis starter also embeds `JWT token based` `authentication` (check [Route](https://github.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/blob/master/src/front/routes/MainRoutes.js#L29) to get an example of dealing with protected routes).\n\n![preview](./preview/preview.png)\n\n- *webpack is as simple as possible*\n- *ReactJS is written with `optimization tricks` (stateless, pure render...).*\n- *`pure front-end` = server independant (use whatever you want as server: NodeJS, Rails, .NET...)*\n- contains both [`SPA`](https://github.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/tree/master/src/server/SPA) and [`SSR`](https://github.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/tree/master/src/server/SSR/src) server implementation\n- caching implementation with `workbox-webpack-plugin` (*so that it follows PWA path!*)\n- *`redux` + `devTools` + `hot reload`= how did I developed without them before?*\n- *graphQL makes API to be \" `has been` \"*\n  - *no more struggle in redux with async thank to Apollo Client (you can even get rid of redux thunk or redux saga if you needed theses just for your asyncs. Otherwise keep them since they are nice :smile:)*\n- [redux-devtools-extension](https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension) to make developments a pure pleasure.\n\n## New 🎉 since v3.0.0!\n\n- Add `code splitting` by using `dynamic import` (*router level but you can extend to component level as you feel the need*)\n - *NOTE: combined with SSR server and SW for caching, this is a good start to follow PWA path!*\n - Want to know more about code splitting with SSR a React application, [read this complete beautiful article](https://marmelab.com/blog/2017/10/17/code-splitting.html) (don't forget to clap the author - no I don't even know him 😉 - but this is a really nice job)\n\n## Detailed Content\n\n**Front:**\n\n- React JS (16.2.x - [github :link:](https://github.com/facebook/react))\n- Redux (*as you application grows managing state will be a serious concern, save pain with Redux*)\n- apollo-client 2.x (*futur of API. Learn about this beast [here in officiel website](http://dev.apollodata.com/)*)\n- React-Redux 5.x (*Redux is not specific to ReactJS, you could easily use it with Angular2 for instance*)\n- React-Router-Redux (*previously named react-simple-router*)\n- react-router (4.x- [github :link:](https://github.com/reactjs/react-router))\n- loadable-components (1.4.x [github :link:](https://github.com/smooth-code/loadable-components))\n- styled-components (3.2.x- [github :link:](https://github.com/styled-components/styled-components))\n- Bootstrap (3.x - [github :link:](https://github.com/twbs/bootstrap))\n- React-Bootstrap ([github :link:](https://github.com/react-bootstrap/react-bootstrap))\n- font-awesome ([github :link:](https://github.com/FortAwesome/Font-Awesome))\n- animate.css ([github :link:](https://github.com/daneden/animate.css))\n- classnames ([github :link:](https://github.com/JedWatson/classnames))\n- react-motion ([github :link:](https://github.com/chenglou/react-motion))\n- Webpack 4.x ([github :link:](https://github.com/webpack/webpack))\n- postcss\n- babel 6+ ([github :link:](https://github.com/babel/babel))\n- redux-devtool-extension ([github :link:](https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension))\n\n**Tool chain:**\n\n- babel 6+\n- eslint\n- hot reload\n- loaders\n  - `js` / `jsx`\n  - css\n  - json\n  - images formats\n  - svg and fonts formats\n\n**tests:**\n\n- jest\n\n## Usage\n\n### Prerequisite\n\n#### Node JS version required is `\u003e=6.x`.\n*Build with node js v8.x but should be ok with node js 6.x.*\n\n\u003e Better use [nvm](https://github.com/creationix/nvm) to manage your Node JS versions.\n\n### server\n\nAn Easy and fast way to get your graphql backend is to **register for free at [Scaphold](https://scaphold.io)**.\n\n\u003e This starter has been created with a scaphold free plan.\n\n**Go to [Scaphold](https://scaphold.io) register and create an application**\n\n\u003cimg src=\"https://raw.githubusercontent.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/master/print_screens/create_app_modal.png\" alt=\"create_app_modal preview\" width=\"400px\"\u003e\u003c/img\u003e\n\n\n- set `AppName`\n- and a `description` (*so that after creating hundreds of applications you won't get lost*).\n\n**You will be able to dicover predefined schemas. This starter will not need more than predefined (User):**\n\n![schema_desiner_overview.png](https://raw.githubusercontent.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/master/print_screens/schema_desiner_overview.png)\n\n- you can define you own schema (*not needed for this starter to run*). But I suggest you have a look on well written `tutorials` to get more familiar with the schema designer.\n\n**GraphiQL is integrated in Scaphold so discover and train predefined graphQL queries and mutations:**\n\n![graphiQL_overview.png](https://raw.githubusercontent.com/MacKentoch/react-redux-graphql-apollo-bootstrap-webpack-starter/master/print_screens/graphiQL_overview.png)\n\n### Configure starter application:\n\nIn Scaphold click on `My API` and `copy your application link`.\n\nThen, past it (*to replace http://localhost:8080/graphql*) in your `networkInterface` in the app config (in `./src/front/config.index.js`):\n\n```javascript\nexport const appConfig = {\n  // apollo client:\n  apollo: {\n    networkInterface: 'http://localhost:8080/graphql'\n  }\n};\n```\n\n\u003e from now you got all needed to run this starter\n\n### Install dependencies\n\n```bash\nnpm install\n```\n\n### run dev : hot reload mode (*+ redux-devtools-extension*)\n\n\n```bash\nnpm run start\n```\n\nNOTE: be sure you already installed [redux-devtools-extension](https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension) in your browser to get the best development experience.\n\n### bundle dev mode (*+ redux-devtools*)\n\n```bash\nnpm run dev\n```\n\n### tests\n\n```bash\nnpm run test\n```\n\n### Analyze production bundle (*PWA friendly*)\n\n```bash\nnpm run analyze\n```\n\n### bundle production mode\n\n```bash\nnpm run prod\n```\n\n### run dev bundle\n```bash\nnpm run start-spa-dev\n```\n\n### run prod bundle\n```bash\nnpm run start-spa-prod\n```\n\n## Donate\n\nDo you use \u0026 like react-redux-graphql-apollo-bootstrap-webpack-starter but you don’t find a way to show some love?\nIf yes, please consider donating to support this project. Otherwise, no worries, regardless of whether there is support or not, I will keep maintaining this project. Still, if you buy me a cup of coffee I would be more than happy though 😄\n\n[![Support via PayPal](./assets/Paypal-button.png)](https://www.paypal.me/ErwanDatin/)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2019 Erwan DATIN\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackentoch%2Freact-redux-graphql-apollo-bootstrap-webpack-starter/lists"}