angularjs - How do mobile apps store messages locally? -
for reason difficult find, trying make messaging app using ionic framework , mean stack wondering...
- what best practices send , retrieve messages(socket.io or node module) hybrid app?
- how should app store these messages(sqllite or nosql) using ionic?
- what format (json?) should stored in sorting , print retrieval on chat screen?
answers appreciated , links really further own research.
well if doing mean stack using mongo database (m: mongo, e: express, a: angular, n: node). socket io best method know of send messages. store them on mongo db. since using mongo db using json format i:e: {user: "", message: "", msgid: ""}.
some links: https://github.com/daftmonk/mean-chat https://www.airpair.com/ionic-framework/posts/ionic-socketio-chat-application-tutorial http://forum.ionicframework.com/t/demo-ionic-chat-app/13324
Comments
Post a Comment