If it is run directly call listen(), export express app otherwise