ionic and restify practise