{"id":13762550,"url":"https://github.com/wwsun/starter-node-react","last_synced_at":"2025-05-10T15:31:30.706Z","repository":{"id":81806867,"uuid":"43942716","full_name":"wwsun/starter-node-react","owner":"wwsun","description":"A starter project for React.js app","archived":true,"fork":false,"pushed_at":"2016-02-02T07:56:01.000Z","size":250,"stargazers_count":164,"open_issues_count":0,"forks_count":33,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-16T21:33:00.239Z","etag":null,"topics":["nodejs","react"],"latest_commit_sha":null,"homepage":"","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/wwsun.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":"2015-10-09T08:28:51.000Z","updated_at":"2024-03-01T17:31:13.000Z","dependencies_parsed_at":"2023-04-24T19:25:19.953Z","dependency_job_id":null,"html_url":"https://github.com/wwsun/starter-node-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwsun%2Fstarter-node-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwsun%2Fstarter-node-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwsun%2Fstarter-node-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwsun%2Fstarter-node-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wwsun","download_url":"https://codeload.github.com/wwsun/starter-node-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253436473,"owners_count":21908339,"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"],"created_at":"2024-08-03T14:00:47.487Z","updated_at":"2025-05-10T15:31:30.416Z","avatar_url":"https://github.com/wwsun.png","language":"JavaScript","funding_links":[],"categories":["React"],"sub_categories":[],"readme":"# starter-node-react\nA starter project for react-app, if you don't familiar with React with Webpack,\nthe following links is highly recommended.\n\n- [Roadmap for learning React](https://github.com/wwsun/awesome-javascript/tree/master/sections/React)\n- [React and Webpack Cookbook - chn version](https://fakefish.github.io/react-webpack-cookbook/index.html)\n\n## Dependencies\n\nplease use the latest version of following tools:\n\n1. ECMAScript 6\n1. React [0.14](http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html)\n1. React-router [1.0](https://github.com/rackt/react-router)\n1. Webpack 1.12\n1. Babel [6.0](https://babeljs.io/blog/2015/10/29/6.0.0/)\n1. Koa 1.0\n1. Node.js 4.1\n\n## Documentation\n\n### Server-side codes with ES6\n\n- `babel-node` is selected in the server-side, \nwhich is an executable for running code via Babel that otherwise works like the `node` executable.\n\n- `babel-preset-es2015-node5` is selected, so that Babel can transpile ES6.\nThe preset configures Babel so that only ES6 constructs are transpiled that missing from Node.js 5。\n\n### Client side codes with ES6 (React with ES6)\n\nTools:\n\n- **webpack** as a client-side module build and module loader\n- **npm** as the package manager\n- **Babel** as a transpiler from ES6 to ES5\n\nDependencies:\n\n- `babel-loader` enables webpack to transpile JavaScript via Babel.\n- `babel-preset-es2015` is a Babel preset for compiling ES6 to plain ES6.\n- `webpack-dev-server` adds a hot-reloading development web server to webpack.\n\n## Running\n\n### Install dependencies\n\n    npm install\n    \n### Build\n\nIf your app is ready, and you want to check the results, you can execute\n\n    npm run build\n\nthen the `bundle.js` is serving at `http://localhost:300/bundle.js` via your koa server, \nor you can use hot mode if you want to `build` repeatedly to check the code changes:\n\n    npm run dev\n    \nthen the `bundle.js` is serving at `http://localhost:8080/assets/bundle.js` via `webpack-dev-server`\n\n**remember!!! you should modify the path of file `bundle.js` in `home.html` manually!**\n\n### Start\n\n    npm start\n    \n### Browse\n\nOpen your browser, and visit `http://localhost:3000` to check the result\n\n## Reference documentations\n\n1. [Babel 6.0 released](https://babeljs.io/blog/2015/10/29/6.0.0/)\n1. [Setting up Babel 6](http://babeljs.io/blog/2015/10/31/setting-up-babel-6/)\n1. [Babel-loader documentation](https://github.com/babel/babel-loader)\n1. [webpack dev server](http://webpack.github.io/docs/webpack-dev-server.html)\n1. [React-router 1.0 doc](https://github.com/rackt/react-router)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwsun%2Fstarter-node-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwwsun%2Fstarter-node-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwsun%2Fstarter-node-react/lists"}