Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: 6 days ago
JSON representation

An abstract, low-cost database library built on peer-to-peer networks.

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).