Reputation: 11337
I'm trying to write an android app that contains list of notes and sync them between other users (for example, if two users use the app and one of them update the list the second will get the updated automatically). I read about mongoDB and I'm trying to use it for this propose (I'm looking for a free service cause I'm in a study period). can I use mongoDB to implement it? is there something simpler? I read about the REST api and I didn't understand how should I work with that.. why does all the example with mongoDB appears with localhost url? it should be a cloud service isn't it? I opened an account and I'm trying to use it from my android app by sending GET request without success.. Am i missing something? should I implement a server side too?
Thanks in advance
Upvotes: 0
Views: 1265
Reputation: 2224
First let me lighten up some thing ,
Did u know how to write web services ( whatever language or api ) !?
Did u know server side javascript ( Nodejs ) ?
It doesn't matter , you should write down a webservice to store and retrieve your data for example in json format then in your apk you just use it ( ui , edit , etc ) , then u will pass it to your webservice ,
NOW About MongoDB
mongoDB was developed for cloud environments so u can , but as today i think cloudfoundry http://www.cloudfoundry.com/ is only stable environment which support mongoDB as one of their data services , so signup for cloud foundry and get started
you need to some knowledge with node.js OR php OR python to work with cloudfoundry
i know this person , he is too kind to lead lead u
AND
Search and ask for , how to make php web service for mongodb ?!
How to use web services in android ?!
Some parts of your questions ( Localhost ) , is like you don't have any idea on web based apps !
First Step
Create a WebService in PHP / MongoDB ( cause there is a lot of resources on php ) to Store and Retrieve Data in anyway ( Json is better cause it's easy to work within android )
Then ask for other parts !
Upvotes: 1