Due to the asynchronous, event based system of Node.js, the approach to error handling is slightly different when compared to many other backend lanagauges.
The above code uses a try-catch statement to ensure that the error is handled safley.
The wrong way:
The right way:
Forever is a script for that detects when your server falls over and automatically restarts it therefore keeping your server up and running.