It's best to start your app via npm. You can do this
by adding an entry to the 'scripts' property of the
packages.json
file.
Nodemon is a utility that watches your project's files for changes and automatically restarts the server whenever a change is detected. It saves a lot of development time.
Always start with 'use strict' on the first line of the file. It enables 'strict mode', which helps with some stuff. More info here
'const' and 'let' are in, 'var' is out. Const and let both do a much better job of controlling the variable's scope, which helps makes code cleaner.
It's best practice to always put your module.exports
statement at the top of the page. This improves
file readability.