Ionic4 beta with codeigniter and mysql as backend

I need to start a simple ionic app with codeigniter and database as backend. Please give a simple example for codeigniter api to communicate with database and ionic