lowdb-middleware

Forked version of Json-Server, this repository focuses on ExpressJS middleware logic


Keywords
JSON, server, fake, REST, API, prototyping, mock, mocking, test, testing, data, dummy, sandbox, json-server, lowdb, expressjs
License
MIT
Install
npm install lowdb-middleware@1.0.0

Documentation

LowDB Middleware

Forked version of JSON Server. This package is intended to used as middleware from within an ExpressJS application.

Roadmap

  • Update packages to latest versions
  • Drop CLI support
  • Rewrite code base to use ES6 style code ie: import fs from 'fs
  • Add API hooks
  • Basic Auth plugin
  • Database management endpoints
  • Add dynamic databases routes
  • Use FileAsync via async/await
  • Configurable setup
  • Snapshots / Restore

Fixes / Enhancements

The following PRs were implemented from json-server repository

  • Fix bug with null expand reference. PR640
  • Add _contains operation PR691
  • Add _attr option to reduce query context PR558
  • Add _flatten option to flatten nested objects
  • Add _keys option to reduce returned results

Documenation coming....