If the 'hello world' approach works for you, then, by all means, use it.
I would not make a broad assumption that "Everyone's used to normal express" with that code snippet.
It is not testable and doesn't provide a clean way to reliably perform any actions once the web server has started or ran into issues.
Any dev inheriting a project should not be making assumptions without reading the code.
If you think wrapping it in a promise harms maintainability, I would suggest taking courses on design patterns unless all you want to do is build toy projects.
It is not testable
Setting up an app, like Express' readme states doesn't need to be. I'm confident that they test it.
Any dev inheriting a project should not be making assumptions
You are correct. But you also shouldn't be wrapping code in unnecessary promises.
If you think wrapping it in a promise harms maintainability
In this case, it does. A class for handling 3 lines of code is so unnecessary. The lines of .then() makes it more difficult to read. I'd actually suggest you took a class in writing maintainable code. I'm happy with the quality of my code, and my employers agree.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If the 'hello world' approach works for you, then, by all means, use it.
I would not make a broad assumption that "Everyone's used to normal express" with that code snippet.
It is not testable and doesn't provide a clean way to reliably perform any actions once the web server has started or ran into issues.
Any dev inheriting a project should not be making assumptions without reading the code.
If you think wrapping it in a promise harms maintainability, I would suggest taking courses on design patterns unless all you want to do is build toy projects.
If you've set up express, you'll have used my example. Not some over-engineered promise wrapper.
If you're unfamiliar with express, their readme gives a very similar example, at the top. github.com/expressjs/express/blob/...