Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thefloatingstring/lightbase
An abstract, low-cost database library built on peer-to-peer networks.
https://github.com/thefloatingstring/lightbase
api blockchain database ipfs peer-to-peer
Last synced: 3 days ago
JSON representation
An abstract, low-cost database library built on peer-to-peer networks.
- Host: GitHub
- URL: https://github.com/thefloatingstring/lightbase
- Owner: TheFloatingString
- Created: 2024-06-09T16:55:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-16T19:43:16.000Z (6 months ago)
- Last Synced: 2024-12-17T11:43:20.665Z (7 days ago)
- Topics: api, blockchain, database, ipfs, peer-to-peer
- Language: Python
- Homepage:
- Size: 58.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lightbase
![img](https://raw.githubusercontent.com/TheFloatingString/lightbase/main/static/img/Lightbase%20Cover.png)
Lightbase is an abstract, low-cost database library built on peer-to-peer networks. To simplify operations with databases, Lightbase is built to be:
+ **Affordable**: as low-cost as possible leveraging peer-to-peer databases.
+ **Frictionless**: fast and easy for developers to use. Built on REST API (minimal dependencies required) and HTTP-inspired calls.
+ **Unique**: unique items that can be accessed across different databases.Lightbase is currently built on [IPFS](https://ipfs.tech).
Feel free to create an issue for feature requests.
### Running IPFS
Installing `ipfs` on Linux for [terminal](https://docs.ipfs.tech/install/command-line/):
```bash
wget https://dist.ipfs.tech/kubo/v0.28.0/kubo_v0.28.0_linux-amd64.tar.gz
tar -xvzf kubo_v0.28.0_linux-amd64.tar.gz
cd kubo
sudo bash install.sh
```In this project's root folder:
```bash
ipfs init
ipfs daemon
```### Running the Backend
```bash
cd backend
pip install -r requirements.txt
fastapi dev main.py
```Read:
```bash
curl -XGET localhost:8000/read/
```Write:
```bash
curl -XPOST localhost:8000/create -H "Content-Type: application/json" -d "{\"data\":\"\"}"
```Web app view at [localhost:8000/view](localhost:8000/view).