For a general overview of Work.nation, see https://github.com/worknation/work.nation.
yarn && yarn dev
The dev server is quite particular about whitespace and other linting issues.
To fix trivial issues, just run yarn lint.
If deploying on Heroku, the following buildback is highly recommended:
heroku buildpacks:set https://github.com/mars/create-react-app-buildpack.git#v4.0.0
You can leave off the version if you prefer to pull from master.
- React Router examples: https://reacttraining.com/react-router/web/example/basic
- Regular expression in paths: https://github.com/pillarjs/path-to-regexp#usage
- Layouts: https://simonsmith.io/reusing-layouts-in-react-router-4/