{"id":15504596,"url":"https://github.com/alanbsmith/react-router-example","last_synced_at":"2025-04-23T01:06:51.377Z","repository":{"id":78448076,"uuid":"98027892","full_name":"alanbsmith/react-router-example","owner":"alanbsmith","description":"an example for deploying a React Router + NodeJS app to Heroku","archived":false,"fork":false,"pushed_at":"2017-10-05T05:35:10.000Z","size":142,"stargazers_count":104,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T01:06:45.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alanbsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2017-07-22T11:45:39.000Z","updated_at":"2025-04-03T11:19:35.000Z","dependencies_parsed_at":"2023-04-24T10:32:52.931Z","dependency_job_id":null,"html_url":"https://github.com/alanbsmith/react-router-example","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/alanbsmith%2Freact-router-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Freact-router-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Freact-router-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alanbsmith%2Freact-router-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alanbsmith","download_url":"https://codeload.github.com/alanbsmith/react-router-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250349055,"owners_count":21415914,"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":[],"created_at":"2024-10-02T09:19:09.300Z","updated_at":"2025-04-23T01:06:51.371Z","avatar_url":"https://github.com/alanbsmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Router + Node Starter\n_for [Heroku](https://www.heroku.com/) deployment_\n\n## OVERVIEW\nThis is a simple starter to get you up and running for React Router projects. This is intended to provide:\n\n* a lightweight Webpack config (for development and production)\n* some helpful tooling for development workflow\n* a similar setup to what you'll see in the wild\n* Heroku-ready deployment setup\n\n## UP \u0026 RUNNING\n* Install dependencies\n`$ npm install` or `$ yarn`\n\n* Fire up a development server:\n* `$ npm run dev`\n\nOnce the server is running, you can visit `http://localhost:8080/`\n\n## Linting\n_This assumes you have eslint and eslint-watch installed. If you don't, run the following:_\n```\n$ npm i -g eslint eslint-watch\n```\nor if you need permissions:\n```\n$ sudo npm i -g eslint eslint-watch\n```\n\nTo run the linter once:\n```\n$ npm run lint\n```\n\nTo run the watch task:\n```\n$ npm run lint:watch\n```\n\n## Testing\nTo run the tests:\n```\n$ npm test\n```\n\nTo run the watch task:\n```\n$ npm run test:watch\n```\n\n## Production Build\nTo build your production assets and run the server:\n```\n$ npm start\n```\n\n## Deploying to Heroku\nThis app is set up for deployment to Heroku!\n\n_This assumes you have already have a Heroku account and have the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli) installed_\n```\n$ heroku login\n$ heroku create -a name-of-your-app\n$ git push heroku master\n$ heroku open\n```\n\n## Contributing\nI am thankful for any contributions made by the community. By contributing you agree to abide by the Code of Conduct in the [Contributing Guidelines](.github/CONTRIBUTING.md)\n\n## License\n[MIT](LICENSE)\n\n### _NOTE_\n_If you're using npm5+, heroku doesn't like having two `.lock` files present. So if you have a `package.json.lock` and a `yarn.lock` file, you'll need to  put one in your `.gitignore`, or remove one._\n\nHeroku will follow the `build` command in your `package.json` and compile assets with `webpack.prod.config.js`. It runs the Express web server in `server.js`.\n\nIf you're unfamiliar with Heroku deployment (or just need a refresher), they have a really great walkthrough [here](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction).\n\n\n## Changelog\n**v1.0.0**\nThis app has been updated to use React v15.5 and Webpack 2.3! 🎉\n\nMajor Changes:\n* Updates React and ReactDOM to v15.5\n* Updates Webpack to v2.3\n* Enables hot-reloading for local development\n* Adds initial test suite with Enzyme, Expect, and Mocha\n\nMinor Changes:\n* Updates all other dependencies to latest\n* Updates eslint rules\n* Updates npm scripts\n* Refactors server.js\n* Updates README\n\n## React + Node Starter\nIf you don't need the router, this is another small starter I built: https://github.com/alanbsmith/react-node-example\n\n### Redux Starter\nIf you're looking for a similar, minimalistic Redux starter, I would recommend Marc Garreau's [here](https://github.com/marcgarreau/redux-starter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanbsmith%2Freact-router-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falanbsmith%2Freact-router-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falanbsmith%2Freact-router-example/lists"}