https://github.com/beastop/decentralized-grqphdb
A tiny effort towards creating a decentralized graph database management system for rapid prototyping.
https://github.com/beastop/decentralized-grqphdb
database decentralized decentralized-graphdatabase flask graphdatabase python python3
Last synced: about 1 year ago
JSON representation
A tiny effort towards creating a decentralized graph database management system for rapid prototyping.
- Host: GitHub
- URL: https://github.com/beastop/decentralized-grqphdb
- Owner: beastOP
- License: mit
- Archived: true
- Created: 2021-12-16T10:53:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-16T11:09:43.000Z (over 4 years ago)
- Last Synced: 2025-02-25T09:28:57.426Z (over 1 year ago)
- Topics: database, decentralized, decentralized-graphdatabase, flask, graphdatabase, python, python3
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decentralised graph database management system
## To get started
clone the repo, and run the command below.
```bash
python3 database.py
```
Now, create a new terminal instance and run the following command.
```bash
python3 database.py -p 50002 -i Bmz9
```
> ```-p``` is for specifing port (but, please stick with 50002 for this to work) and ```-i``` is for specifing a instance id for this database instance.
Then run,
```bash
pip install flask
python3 server.py
```
## To add data
Run the following request,
```bash
curl -H 'Content-Type: application/json' http://127.0.0.1:5000/add -XPOST -d '{"data": {"username": "beastOP"}, "lable":["git_users"]}'
```
and to get the data run
```bash
curl http://127.0.0.1:5000/match
```