Closed Michael960 closed 4 years ago
main.css is also not described. But this does not run into a build error, it just makes the output look less beautiful. But I think that, for completeness, this should also be described.
const client = require('./client');
that says "client is custom code that configures rest.js to support..."I originally left that out on purpose, since it was specific to the rest JS toolkit for doing REST calls, and not critical to what you did. There is a hyperlink to view the file. I had thought it would slow down the tutorial. If you think this needs to be inlined, we can entertain that.
Being part of client.js
, I also left out the UriList and UriTemplate handler code for the same reason. If you decided, today, to use restangular, you could easily read this tutorial and plug that in.
Perhaps if I reworded the tutorial to emphasize that point would be better than dragging in code that wires a now defunct JS library?
I tried to follow the tutorial from scratch (using STS 4). Until the first run ("Touring your REST service") there were no problems. But at the second run (at the end of "Diving into React") I ran into the following non-self-explaining error:
After investigating the differences between my source and the GIT source using KDiff3 for four hours, I found out that in my source, the following files were missing as the tutorial did not instruct me to create then (and also did not explain them):
After copying them from the GIT source, my source built successfully.
I think it would be helpful for many people to complete this in the tutorial as it is quite frustrating if you try to follow a tutorial and get some errors that you don't manage to get resolved. And I guess that most beginners are not able to resolve this one themselves.