Documentation
 

Learn to connect to your local database.
It uses an NPM Package called hexo-db.
A package also made by Fizx.

 
 

 
Easy Database connection

HexoDB acts like an API to send your data.
Using hexo-db, an NPM Package, makes it easy for you to read and write data.

 
 

Access your database

Anyone can access your database if they know your project domain.
Only give it to people you trust!
 
Connecting to your database is easy as 1-2-3.
Step 1:
— Click "Get Yours", and remix a HexoShard
— Go to your project domain.
— e.g. https://hexodb.glitch.me/
 
Step 2:
— Install hexo-db on your NodeJS app.
npm install hexo-db
— Connect your project-domain!
Example:
→ const Hexo = require("hexo-db");
const db = new Hexo.Database("https://hexodb.glitch.me/")

Step 3:
— Read and write data!
db.set("money", 300) // null → 300          
db.add("money", 200) // 300 + 200 → 500      
let money = await db.fetch("money")          
console.log(money) // prints 500 to console  

 
Read the full documentation of hexo-db here.

 
 
 

The easy connect, API-like database.

Made on Glitch, by FizxCreations ♥

Informations

Our Discord
Donate

Copyright © Fizx | FizxCreations.