Loki NativeScript adapter
A Loki adapter for NativeScript apps.
What is Loki
LokiJS is a document oriented database written in javascript, published under MIT License. Its purpose is to store javascript objects as documents in a nosql fashion and retrieve them with a similar mechanism. - LokiJS
Demo
Watch the example application on YouTube
Installation
Run the following command from the /app
directory of your project:
$ npm install lokijs --save
$ npm install loki-nativescript-adapter --save
Usage
// Requirementsvar fs = ;var Loki = ;var LokiNativeScriptAdapter = ; // Setup Lokivar path = fspath;var db = path adapter: ; // Save some moviesvar movies = db;movies;movies;movies;console;db; // Load and find some moviesdb;
To go deeper in Loki have a look at the documentation.