vinyguedess / stackerjs-db-file-adapter

A database adapter for StackerJS that works with JSON files instead of a known database service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis Maintainability Test Coverage Dependencies npm

StackerJS DB: File Adapter

An adapter for file system database.

Installation

npm install --save stackerjs-db-file-adapter

Usage

You need to create a config folder with a file called db.js, as follows:

// config/db.js

module.exports = {
    host: "path/to/host",
    name: "database_name"
}

Now you're set to write your queries.

About

A database adapter for StackerJS that works with JSON files instead of a known database service

License:Apache License 2.0


Languages

Language:JavaScript 100.0%