spring-attic / tut-react-and-spring-data-rest

React.js and Spring Data REST :: A tutorial based on the 5-part blog series by Greg Turnquist
https://spring.io/guides/tutorials/react-and-spring-data-rest
883 stars 1.58k forks source link

Copied all source, but nothing rendering in browser #135

Closed laz1r closed 3 years ago

laz1r commented 3 years ago

I've copied all source code, and when I go to localhost:8080 in the browser I see the title ReactJS + Spring Data REST but the rest of the page is blank, also I clicked view source and I can see the index.html source code, but nothing is rendering.

Also I can go to localhost:8080/api/employees and see the employee in JSON output.

Any ideas what I could be missing?

laz1r commented 3 years ago

I was not aware I had to copy the client.js, uriListConverter.js, and uriTemplateInterceptor.js files from here: https://github.com/spring-guides/tut-react-and-spring-data-rest/tree/master/basic/src/main/js in order to implement this line of code - const client = require('./client'); in the tutorial.

Once I copied those files, the application was able to render.