DEV Community

kurakste
kurakste

Posted on

Need some help with nodejs

Hello guys!
I start learning node js. It’s amazing language and i like it. But i need some help. Somebody who can direct me about project structure & code style and best practices. If you could help me i’ll be grateful.
Here (github: kurakste/NodeRestfull) is my study project.
Any feedbacks or recommendation are welcome.

Top comments (2)

Collapse
 
arswaw profile image
Arswaw

Right off the bat your project looks good. You've learned how to interact with the database and you've created routes. You have good separation of concerns. Maybe you could document your code by adding comments above each route that show what they do. You could even use something like JSdoc or write your own separate documentation.

I'm really happy to see someone enjoying Node.js

Collapse
 
gmartigny profile image
Guillaume Martigny

At the syntaxe level, you can use a linter like ESLint. Rules are personal, experience will make you like one over the other. AirBnB rules are a good start.

At best practice level @arsaw already answer you, but you could check tools like Code Climate. It's really easy to use with github.