Search code examples
javascriptweb-applicationsfirefox-os

Connecting DB with my Firefox OS app using JS


I'm developing an app for Firefox OS and I need to retrieve/sent data from/to my DB. I also need to use this data in my logic implementation which is in JS.

I've been told that I cannot implement PHP in Firefox OS, so is there any other way to retrieve the data and use it?

PS: This is my first app that I'm developing, so my programming skills are kind of rough.


Solution

  • You can use a local database in JS, e.g. PouchDB, TaffyDB, PersistenceJS, LokiJS or jStorage.

    You can also save data to a backend server e.g. Parse or Firebase, using their APIs.

    Or you can deploy your own backend storage and save data to it using REST.