mvc structure for frontend. models consumes a restful api