Hey, I am starting to learn some node.js, any advice.
Remember to simplify!
Many things that you might use multiple files to express in Java can be expressed in one file in node.
For example, when I ported a Java service to node, it had separate files for each class, and a class for each 200 return value, a class for each error, 2 commandhandlers/controllers etc etc.
In node it was the express server in one file. The router in a separate file and then a controller file that was essentially an Enum (using Java-ese) that defined all the functions for each route on the API and any helper functions.
Java-brain will make you want to over-complicate a bit. That complication is good in very large teams that might need to have one person working on one class and another person working on the controller, and another person working on the Spring implementation all in parallel. It forces you to slow it down and think it through to avoid side-effects on your teammates!
Hope that helps!
Coming from a Java background as well I used Spring MVC a lot , so I am not sure is the case the same but what I did was:
done, you don't need JS and nodeJS nonsense but when you do.. you know even more then the rest.
The Node.js API docs can be a little overwhelming to beginners. I suggest that you visit nodejs.dev to take a look of a little of what Node.js is capable of doing.
Here you can check how to build rest API with nodejs, it is great for beginners
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.