Closed saylerb closed 8 years ago
I've pushed this up to a staging heroku application here https://afternoon-plains-39747.herokuapp.com/ , and it seems to be working smoothly. I had to remove a let
variable declaration, since Heroku complained. The changes are now production-ready. @robbiejaeger
I loaded the staging app and could not reproduce the bug - so it looks good to me.
Fixes #71
Reverting back to using browserHistory instead of hashHistory.
I was banging my head against the wall today trying to get this to work, and I finally came around to playing with the express server. It seems like changing the route from
"/"
to"*"
fixed everything.I also tried to convert some of the server code to ES6 in anticipation of Lucy's style guide, but I couldn't use
export default app
at the bottom instead ofmodule.exports = app
. Not sure why.I tested this using
nodemon
as well as usingweb-pack-server
. It seems to correctly support opening a new tab to view the detail page, as well as correctly opens a new tab when clicking "View job posting" on the detail page.I haven't wrote any automated tests for this, since I'm still pretty new to routing in react. Suggestions for how to test this are welcome!
To 'test' this branch:
npm start
)localhost:8080/
npm run dev
)http://localhost:8080/webpack-dev-server/