The path of least resistance would be to use Sequelizeand sqlite3in your application.
Start by launching npm install sequelize sqlite3.
Then in your code
var Sequelize = require( 'sequelize' )
var connection = Sequelize.connect( undefined, {
dialect: 'sqlite',
storage: __dirname + '/db.sqlite'
})
Tada, you have a database connection synchronization with a local SQL block.
, , ".
API angular, json-server - , "".