An open API service indexing awesome lists of open source software.

https://github.com/v-core9/v_database

Custom DB solution using node.js
https://github.com/v-core9/v_database

Last synced: 2 months ago
JSON representation

Custom DB solution using node.js

Awesome Lists containing this project

README

        

# **๐Ÿงพ V_Database - README.md**

**Description**: _Simple way to make data available in your website/application for a single database._

>---
>### ๐Ÿšง **WARNING: APPLICATION STILL IN ๐Ÿงฑ [ALPHA] ** ๐Ÿšง
>---
## **๐Ÿš• Install and Setting up**

Currently only through the github repo can be installed...
Run these commands in sequence to install:

// Install the dependency
npm i v_database --save
// Start node
node
// Load it into the console
const v_db = require('.');
// Trigger the install
await v_db.install();

Soon... ๐Ÿš€

---
## **โšก How to actually use it ?**

here is an example code that is being used to export this example readme file in the fist place.

const v_database = require('v_database');

v_database.type.new('books'); // returns true if it created new type or false if it already exists or fails
v_database.type.new('links');

v_database.item.new('books', {name: 'book title text' , description : 'demo' });
v_database.item.new('links', {name: 'v-core9' , path : 'https://v-core9.com/' });

v_database.item.new('books', { id: 'sample_id', name: 'book title text' , description : 'demo' }); //Adding ID will try to use it as an ID

v_database.install() // trigger installation process
v_database.data_size() // returns the size of the data
v_database.purge_data() // removes all data from the database

---
## **๐Ÿ“ Project Folders Structure Info**

Look into system folder for more info about project structure.

These are some important folders that are used when generating this document:
๐Ÿ“ __tests__ /
๐Ÿ“ __tests__ / v_database /
๐Ÿ“ __tests__ / v_lidator /

๐Ÿ“ _tDdata_ /
๐Ÿ“ _tDdata_ / _test-data /

๐Ÿ“ $_HELP_$ /
๐Ÿ“ $_HELP_$ / readme /

๐Ÿ“ v_database /
๐Ÿ“ v_database / config /
๐Ÿ“ v_database / config / version /
๐Ÿ“ v_database / helpers /
๐Ÿ“ v_database / info /
๐Ÿ“ v_database / item /
๐Ÿ“ v_database / modules /
๐Ÿ“ v_database / type /

๐Ÿ“ v_lidator /
๐Ÿ“ v_lidator / src /
๐Ÿ“ v_lidator / src / helpers /
๐Ÿ“ v_lidator / src / templates /
๐Ÿ“ v_lidator / src / user /

---
## **โœ… Tests and Coverage with Jest**

![Test and Coverage with Jest](coverage.png)

---
>### ๐Ÿ”ป **WARRNING: GENERATED FILE NOTICE** ๐Ÿ”ป
> โ›” Any Edits Done To Generated Files Will Be Overwritten Next Time These Files Get Re-Generated!
>
> _Made ๐Ÿ’– using [v_scrolls]("https://github.com/V-core9/v_scrolls")_
> Last Updated: 2021/12/19 13:40:26