angularjs - Mobile backend - Ionic, Angular, PHP -


need little on flow of thoughts. i've built little web app consists of orientdb on aws server, written in html , javascript on client side , php on backend. take mobile world , thinking of utilizing ionic , angularjs.

when "talking" server side, i've read on several places should make direct http calls, utilizing angularjs service $http doing get, post, etc. i.e. build kind of rest api query database. avoid having give out server , database credentials directly (hardcoded) app. correctly understood?

in web app i've used _session "remember" logged in user when he/she clicks around , queries db. restful solution, have provide user credentials every query (so correct user's data gets sent client)? way supposed or how around problem?

(i guess violates rules since answers might (?) opinion based or whatever, sorry that).


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -