DrSensor / F.I.D.E

A desktop application like File Explorer apps but for IoT data
Apache License 2.0
1 stars 1 forks source link

Replace js-data-autosql for maintainability #5

Open DrSensor opened 6 years ago

DrSensor commented 6 years ago

Because js-data not properly maintained now (the creator now work on Google Cloud Platform team), there is need to replace it with a library that still has an active contributor. The candidates are:

  1. Feathers.js - great docs, have awesome-feathers list, integrate to anything from Knex, Express, to Vue and even Vuex
  2. Bookshelf.js - ORM model based on Knex. Have many useful plugins
  3. Knex.js - mother of all javascript SQL based DB-adapter. Tips: use Objection.js to use available JSON-schema but its only for validation. Also, need to use knex migration tool for database migration then write manually for schema creation.
DrSensor commented 6 years ago

Try this https://github.com/Vincit/objection.js/tree/master/examples/express-es6 as a basis. Also, use Ajv for validate data at vuex-mutation