Hi there,
I am really really new to Addon Developement
What i’m doing is an addon, that fetches data from a website and stores it in a database in our local Network. So that you can access data from every computer in this Network.
What i tried to do is to connect to an sqlite database but everything I found seamt to be old and didn’t work.
Last thing I tried was to install a node.js module named “sqlite3” into the addon. That worked fine.
But including the module with var sqlite = require("sqlite3").verbose();
like seen in this tutorial [http://blog.modulus.io/nodejs-and-sqlite][1]
running the addon with jpm run gives me this Errormessage:
Module ‘path’ is not found at resource://gre/modules/commonjs/path.js
Here, the whole Error:
Now i have some questions:
-
Is that a right way to access a sqlite db? If not, can anyone give me an introduction or a tutorial link or something like that, that helps me connecting to a sqlite?
-
If using the node.js module is a good way, how can i solve the error?
I hope, I can solve this with your help.
Michael
[1]: http://blog.modulus.io/nodejs-and-sqlite