DEV Community

Discussion on: 73 Awesome NPM Packages for Productivity 🚀🌱

Collapse
 
bias profile image
Tobias Nickel

Also, a tool I love: json-server, a rest API for json files.

And I can't resist to mention trdb my in new json file database, similar to lowDB, that I developed last weekend for rapid prototyping. it:

  1. deliberatly has few very few features to be easily learned and later replaced with a real db.
  2. all APi async, to have very little codechange when change to a real db.
  3. always work with copies of objects inside the db and outside, to avoid sideeffects and (again) easily migrate to real db.
Collapse
 
ozaytsev86 profile image
Olek

Hi, did you try mockoon.com/?

Collapse
 
bias profile image
Tobias Nickel

mocknoon is looks good, with trdb I try to hit a different audience.

As I understand it, frontend or api consumer can test against this mock servers. A little like json-server but for defining specific api responses instead of the rest-json-file database.

with trdb the backend develoer can instandly start implementing the backend, including sessions, authentication, permissions,... and later it is trivial to change the code to a sophisticated db, with hopefully minimal code changes.

I developed it, to study oauth, implement an authenticatio service (login with), an app that the user want to login, and an api service, that the user grand the app access to.

And for these studying purpose, I figured a json file db module that bahave like a real db, would be awesome.

Collapse
 
madza profile image
Madza

Thanks for the additional input! 🙏❤