Skip to content

matt-oc/seneca-sqlite-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seneca

A Seneca.js a seneca-auth plugin

seneca-sqlite-store

npm version Build Status Dependency Status Gitter chat

Seneca-SQLite is a SQLite database driver for Seneca MVP toolkit This project was sponsored by nearForm.

Install

npm install seneca-sqlite-store

Using sqlite-store

When using seneca-auth the local auth must be initialized using:

var seneca              = require('seneca');
    var senecaSQLiteStore   = require('seneca-sqlite');

    var senecaConfig = {}
    var senecaSQLiteStoreOpts = {
        database:'/path/to/seneca_sqlite.db'
    };

var si = seneca(senecaConfig);
   si.use(senecaSQLiteStore, senecaSQLiteStoreOpts);
   si.ready( function(){
       var product = si.make('product');
       ...
   });

Test

To run tests, simply use npm:

npm run test

Contributing

The Senecajs org encourage open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.

License

Copyright Marius Ursache and other contributors 2016, Licensed under MIT.

About

SQLite database driver for Seneca MVP toolkit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%