configuring mongo app and server port