Update "service.js" to get and post data with mongoDB.