I'm trying to use NeDB database for persistence of application data. I'm trying to use the following approach to connect to my database like the following:
var Datastore = require('nedb')
, path = require('path')
, db = new Datastore({ filename: path.join(require('nw.gui').App.dataPath, 'something.db') }
But unfortunatly it fails because this works only client code withit <script></script>
tags in html file. How could I do same thing on server side?