ujd
v0.3.0
Published
Small but powerful database using websockets and JSON
Downloads
2
Maintainers
Readme
UJD
Microscopic But Powerful JSON & WebSocket Database
How To Install UJD
npm install -g ujd
How To Use UJD
Creating A Database: ujd create test_database
Deleting A Database: ujd delete test_database
Starting The Server: ujd start 3000
Sending Data To The UJD Server
You Must Use Websockets To Connect To The Database
const WebSocket = require("ws");
const Ws = new WebSocket("ws://localhost:3000");
ws.on("open", () => {
ws.send({
"type": "set", // this can be set, delete, or get
"data": {
"name": "test_database", // needed for all events
"key": "test_key", // needed for all events
"value": "test_value" // only needed for set
}
});
});