# Database for my Ionic app

**URL:** <https://forum.ionicframework.com/t/database-for-my-ionic-app/39270>\
**Category:** ionic-v1\
**Created:** [December 15, 2015, 8:48pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270 "2015-12-15T20:48:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![avihazut](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@avihazut](https://forum.ionicframework.com/u/avihazut)\
**Post date:** [December 15, 2015, 8:48pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/1 "2015-12-15T20:48:53Z")

</div>

I’ve wonder what database you guys recommended for my Ionic app?  
Can I use SQL Sever, or anything else you guys think?  
Should I use cloud as Azure and what are my other options for hosting my data?

I’ve also want to know where I can get some tutorials about Ionic and database connection.

Thank you!

---

<div class="post-metadata">

**Author:** ![gmarziou](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gmarziou/32/13327_2.png) [@gmarziou](https://forum.ionicframework.com/u/gmarziou)\
**Post date:** [December 15, 2015, 9:21pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/2 "2015-12-15T21:21:23Z")

</div>

It does not really matter as it is on the server behind your REST API unless you plan to synchronize a mobile database with it.

---

<div class="post-metadata">

**Author:** ![avihazut](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@avihazut](https://forum.ionicframework.com/u/avihazut)\
**Post date:** [December 16, 2015, 6:11am UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/3 "2015-12-16T06:11:55Z")

</div>

Got it for the database part but does it matter if I need to have chat in my app?

Thanks,  
Avi

---

<div class="post-metadata">

**Author:** ![javebratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/javebratt/32/104226_2.png) [@javebratt](https://forum.ionicframework.com/u/javebratt)\
**Post date:** [December 16, 2015, 3:22pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/4 "2015-12-16T15:22:25Z")

</div>

It doesn’t really matter, you can build your backend with whatever it is you feel comfortable with, you just need to make sure to build an API REST.

Ionic is going to connect to your API to interact with your database.

If you want to try a chat app you could take a look at [http://firebase.com](http://firebase.com) it is a Backend as a Service with real time data push, really easy to build a chat with that one.

---

<div class="post-metadata">

**Author:** ![avihazut](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@avihazut](https://forum.ionicframework.com/u/avihazut)\
**Post date:** [December 16, 2015, 3:29pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/5 "2015-12-16T15:29:16Z")

</div>

Yes, I’ve heard about Firebase but I have more questions if you don’t mind.

Is Firebase good only for chat or it also good for saving my data?  
Is Firebase the same as Azure Mobile Service or it totally different?

Thanks again!

---

<div class="post-metadata">

**Author:** ![antonfire](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/antonfire/32/90516_2.png) [@antonfire](https://forum.ionicframework.com/u/antonfire)\
**Post date:** [December 16, 2015, 6:05pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/6 "2015-12-16T18:05:09Z")

</div>

Firebase allows for realtime updates without having to perform http calls to check for updates, i.e. as soon as your database is updated i.e. with a new message on chat your client side will update without the need for a interval http call to check. It falls down for things where you need server side security such as masking location etc, you could combine with [parse.com](http://parse.com) to get the best of both worlds i.e. all secure business logic and secure functions done in parse cloud code and use firebase to take care of realtime data syncing which parse does not offer.

---

<div class="post-metadata">

**Author:** ![avihazut](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@avihazut](https://forum.ionicframework.com/u/avihazut)\
**Post date:** [December 16, 2015, 6:11pm UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/7 "2015-12-16T18:11:14Z")

</div>

So if I’m using Firebase for my real time updates (chat) I will also need to use some other things as well such as [parse.com](http://parse.com)?

Do Azure also provide real time updates?

Thanks again!

---

<div class="post-metadata">

**Author:** ![antonfire](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/antonfire/32/90516_2.png) [@antonfire](https://forum.ionicframework.com/u/antonfire)\
**Post date:** [January 7, 2016, 11:32am UTC](https://forum.ionicframework.com/t/database-for-my-ionic-app/39270/8 "2016-01-07T11:32:19Z")

</div>

Not sure about Azure. It depends if you have business logic you need to have hidden, javascript functions you wish to execute non client side for security and if you want to hide coordinates. Lets say in the case of public coordinates such as bank, shop etc these are public knowledge and geo-fire would suffice. Conversely you might have user coordinates which you don’t want available to clients for their security and as such you would need to return distance from user rather than the coordinates, this would need parse cloud or some other server to handle. The same for birthdate to get age etc.
