GitHub license made-with-javascript

CURD.js

CURD.js gives you wing in your localStorage.

It is a javascript library that allows you to use your localStorage as a document database.

Table of Contents

Overview

It is a javascript library that allows you to use your localStorage as a document database. With CURD.js you can performe each and every opperation that a normal document database has.
Which mean now you can use your localStorage as a temporay database to store some data temporarily which will be synced with your server letter on.
It can also enhance your PWA's performance by giving it a offline database.

Installation

It is really easy and simple to install and use CURD.js. Copy and Paste the following link to your code.

https://res.cloudinary.com/dxqq6aqn8/raw/upload/v1632910286/CURD/curd.min_urp5x3.js

You can also download and add the CURD.min.js file to your code.
And you are good to go with superpowers.

Structure

It's good to have a clear concept of the structure of your database.

Main database is an object which has all the collections containing all the data


    MainDatabase : {
        firstCollection{
            key1:{
                Data Object
            },
            key2:{
                Data Object
            },
            ...
        },
        secondCollection{
            key1:{
                Data Object
            },
            key2:{
                Data Object
            },
            ...
        },
        ...
    }

Functions