set up basic communication between app and java server to add route and start server