angular files distributed, working with restful api, working with mongoDB