The Data Audit and Snapshot Plugin (DASP) is a Node.js application that provides an easy to use, web-based utility to study the genealogy of data as it gets created, stored, modified, deleted and analysed on a recurring basis.
DASP plugin exposes simple HTTP endpoints to register client's data items and captures changes on data item over time. The client can register the data item and view all changes on it. The clients have the option to either view all the changes made to their data or be able to view the audit history for the same, based on the time stamp.
- It also includes the ability to add a filter to view the capture history based on categories.
- The plugin also supports toggle functionality to enable/disable CDC on specific items based on the data category (
user defined entity classification
) or based on the unique ID for a specific data item.
- Node.js
- EJS
- Express.js
- MongoDB Atlas
- Make sure, the following are installed in the local system.
Node
andnpm
mongodb
git
- Steps to set up the service on development enviroment
- Clone this repository
git clone https://github.com/H2H-DASP/DataAudit-SnapShotPlugin.git
- Install dependencies
npm i --save
- Run the development server
npm run dev
- Visit
http://localhost:5000
- Clone this repository
- To Plug the DASP utility to client's data item:
- To check current state of your data item with last modified time stamp:
- To fetch all registerd data items with the current state along with last updated time stamp. (For development purpose only)
- Make a
GET
request to our service/api/getlog
- Make a
- To fetch the audit history for your data, captured by the service
- To toggle Data Capturing of your data item
- Make a
PUT
request to the service with your data_id./api/togglelog/:data_id
- The toggle feature allows the client to enable/disable Capture Data Change (CDC) service for the specified data item.
- Make a
PUT
request to the service with your data entity./api/toggleentitylog/:entity
- This feature will allow the client to enable/disable Capture Data Change (CDC) service for a data category on our service, specified by the
entity
attribute.
- Make a
Note: This is a prototype application to provide a web based CDC service.
All rights reserved. Copyright (c) DASP Team.