{"id":16432946,"url":"https://github.com/darul75/web-react","last_synced_at":"2025-07-15T11:44:58.879Z","repository":{"id":30757702,"uuid":"34314309","full_name":"darul75/web-react","owner":"darul75","description":":diamond_shape_with_a_dot_inside: Another React Dev Kit with Webpack and NodeJS","archived":false,"fork":false,"pushed_at":"2016-01-14T10:04:01.000Z","size":4110,"stargazers_count":81,"open_issues_count":8,"forks_count":8,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-23T20:51:27.977Z","etag":null,"topics":["nodejs","react","webpack"],"latest_commit_sha":null,"homepage":"https://react-web.herokuapp.com/","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/darul75.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-04-21T08:28:37.000Z","updated_at":"2023-05-03T22:43:49.000Z","dependencies_parsed_at":"2022-09-01T06:11:24.940Z","dependency_job_id":null,"html_url":"https://github.com/darul75/web-react","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/darul75/web-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darul75%2Fweb-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darul75%2Fweb-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darul75%2Fweb-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darul75%2Fweb-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darul75","download_url":"https://codeload.github.com/darul75/web-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darul75%2Fweb-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265433186,"owners_count":23764239,"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":["nodejs","react","webpack"],"created_at":"2024-10-11T08:44:43.954Z","updated_at":"2025-07-15T11:44:58.860Z","avatar_url":"https://github.com/darul75.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"web-react [![NPM version](https://badge.fury.io/js/web-react.png)](http://badge.fury.io/js/web-react) [![Build Status](https://travis-ci.org/darul75/web-react.png?branch=master)](https://travis-ci.org/darul75/web-react) [![Join the chat at https://gitter.im/darul75/web-react](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/darul75/web-react?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n=====================\n\nAnother Webpack React Kit.\n\nWhy\n-------------\n\nBecause there are many React starter kits but some are so specific and difficult to take in hands.\n\nIdea was to take in hands following stack :\n\n* [ES6](https://babeljs.io/docs/learn-es6/) : and you will learn React with awesome ECM6 features.\n* [Webpack](https://github.com/webpack/webpack) : amazing bundler, still to learn so much about it.\n* [React](https://github.com/facebook/react) : choosed because I love idea of Virtual DOM.\n* [Flux](https://facebook.github.io/flux/docs/overview.html) : flux and used implementation is [Alt](http://alt.js.org/)\n* [Immutable](https://facebook.github.io/immutable-js/) : Immutable everywhere.\n* [EsLint](http://eslint.org/): JS and JSX syntax validator.\n* [Express](http://expressjs.com/): Version 4.\n* [Mocha](http://mochajs.org/): Testing.\n\nFor a simple website with no server side it is really fine.\n\nFor a more complex website, an Express server is used but work is not finished.\n\n- Server side React rendering is ready and done through [React-Router](https://github.com/rackt/react-router)\n- Flux on server side has begin thanks to [Iso](https://github.com/goatslacker/iso/) and Alt feature to bootstrap your app with data.\n- Some API server routes are just given as example.\n- You can debug it on server side thanks to sourcemaps.\n- *NEW FEATURE* : hot reloading of you code on server side too (node), it will patch silently without restarting your node server.\n\nOn both client/server [Fetch](https://github.com/github/fetch) request handler is used (for example on server side)\n\nHope you will enjoy.\n\nCODE, DEBUG in an isomorphic JS way !\n\nDemo\n-------------\n\nhttps://react-web.herokuapp.com/\n\nTry reload page, put wrong path, snapshot todo list...play, I will improve it later to show how it works.\n\nHow to use it\n-------------\n\n*DEV ONLY CLIENT*\n\nWebpack with hot changes loading but no own server, enough for a single presentation page app by instance. Port: 8080\n\nSee changes at [http://127.0.0.1:8080](http://127.0.0.1:8080)\n\n```bash\nnpm run dev\n```\n\n*DEV ONLY CLIENT/SERVER*\n\nLet's use your own NodeJS server.\n\nStart webpack in background with *hot changes loading* and *debug* in both client/server sides.\n\n```bash\nnpm run dev-server-client\n```\n\n*THEN* when bundle is generated in build folder, start your node server (express), launched in ES6 thanks to Babel.\n\n```bash\nnpm run dev-server\n```\n\nor with debug nodejs mode :\n\n```bash\nnode-inspector \u0026\n```\n\n```bash\nnpm run dev-server-debug\n```\n\nGo to inspector (because of break mode) [http://localhost:8080/?ws=localhost:8080\u0026port=5858](http://localhost:8080/?ws=localhost:8080\u0026port=5858)\n\nSee changes at [http://127.0.0.1:3000](http://127.0.0.1:3000)\n\n*PRODUCTION*\n\nBuild production bundle both client and server.\n```\nnpm run build\n```\n\nRun production client/server React/Express website.\n\n```\nnpm run start\n```\n\nSee it at [http://127.0.0.1:3000](http://127.0.0.1:3000)\n\nSTRUCTURE\n-------------\n```\n.\n├── /build/                     # Compiled output\n├── /conf/                      # Webpack scripts + testing glue.\n├── /dist/                      # Production compiled output\n├── /node_modules/              # 3rd-party libraries and utilities\n├── /app/                       # Source code of the client application\n│   ├── /actions/               # Action creators that allow to trigger a dispatch to stores\n│   ├── /components/            # React components\n|       |── /__tests__/         # React components unit tests\n│   ├── /stores/                # Stores contain the application state and logic\n├── /server/                    # The source code of the server application\n│   ├── /api/                   # REST API\n│   ├── /routes/                # Express routes entries\n│   ├── /server/                # Server-side startup script\n│   ├── /utils/                 # Some specific, rendering...\n├── /assets/                    # Static resources\n│   ├── index.html              # Html templates used for `dev client` / `dev server` / `production`\n│   ├── config                  # JSON configuration file, used for \u003chead\u003e metas today, more later...\n└── package.json                # The list of 3rd party libraries and utilities\n```\n\nFOCUS\n-------------\n\nThanks to [react-helmet](https://github.com/nfl/react-helmet), now you will be able to enhance head dom part with one json configuration [file](https://github.com/darul75/web-react/blob/master/assets/config.json).\n\n```json\n{\n  \"title\": \"web-react\",\n  \"meta\":[\n    {\n      \"name\": \"description\",\n      \"content\": \"Webpack Node React Starter Kit\"\n    },\n    {\n      \"name\": \"viewport\",\n      \"content\": \"width=device-width, initial-scale=1\"\n    }\n  ],\n  \"link\": [\n    {\n      \"rel\": \"shortcut icon\",\n      \"href\": \"/favicon.ico\",\n      \"type\": \"image/x-icon\"\n    },\n    {\n      \"rel\": \"icon\",\n      \"href\": \"/favicon.ico\",\n      \"type\": \"image/x-icon\"\n    }\n  ]\n}\n```\n\nRELEASE\n-------------\n\n* 1.2.0: see CHANGELOG.md file\n* 1.1.0: react 0.14.0 + react-router 1.0.x =\u003e refactoring\n* 1.0.9: bump RHL version, may remove NoErrorsPlugin with React Hot Loader 1.3.0\n* 1.0.8: record/reload all dispatched payload example\n* 1.0.7: Immutable integration + code refactoring + todo task edition + some actions\n* 1.0.6: branding\n* 1.0.5: fix runtime dependency\n* 1.0.4: \u003chead/\u003e tags in config file, meta, links + dynamic title ability, isomorphic\n* 1.0.3: fix import + dependent store example\n* 1.0.2: webpack hot module store fixture\n* 1.0.1: connect stores wrapper + refactoring\n* 1.0.0: footer + demo tags\n* 0.0.9: demo production distribution + local webpack path + licence\n* 0.0.8: hot [HMR](https://github.com/webpack/docs/wiki/hot-module-replacement-with-webpack) server reloading + refactor server directories.\n* 0.0.7: testing available with mocha, scss/sass/css loaders fixes.\n* 0.0.6: full ES6 + start refactoring.\n* 0.0.5: debug mode for both client/server side\n* 0.0.4: starter kit\n\nMetrics\n\n[![NPM](https://nodei.co/npm/web-react.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/web-react/)\n\nTODO\n-------------\n\n- [x] Update React/React routet version and other libraries if needed\n- [ ] Look at webpack node middleware for HMR\n- [ ] Now that io.js and node merged again, see for ES6/ES7 compliance and refactoring\n- [ ] More example of routing, fetching.\n- [ ] More tests\n- [ ] Change flux implementation =\u003e redux ?\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Julien Valéry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarul75%2Fweb-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarul75%2Fweb-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarul75%2Fweb-react/lists"}