Mahuta (formerly known as IPFS-Store) is a library to aggregate and consolidate files or documents stored by your application on the IPFS network. It provides a solution to collect, store, index, cache and search IPFS data handled by your system in a convenient way.
Project status
Service
Master
Development
CI Status
Test Coverage
Bintray
Docker
Sonar
Features
Indexation: Mahuta stores documents or files on IPFS and index the hash with optional metadata.
Discovery: Documents and files indexed can be searched using complex logical queries or fuzzy/full text search)
Scalable: Optimised for large scale applications using asynchronous writing mechanism and caching
Replication: Replica set can be configured to replicate (pin) content across multiple nodes (standard IPFS node or IPFS-cluster node)
Multi-platform: Mahuta can be used as a simple embedded Java library for your JVM-based application or run as a simple, scalable and configurable Rest API.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
curl -X POST \
http://localhost:8040/mahuta/config/index/article \
-H 'Content-Type: application/json'
Success Response:
Code: 200
Content:
{
"status": "SUCCESS"
}
Store and index an article and its metadata
Sample Request:
curl -X POST \
'http://localhost:8040/mahuta/index' \
-H 'content-type: application/json' \
-d '{"content":"# Hello world,\n this is my first file stored on **IPFS**","indexName":"article","indexDocId":"hello_world","contentType":"text/markdown","index_fields":{"title":"Hello world","author":"Gregoire Jeanmart","votes":10,"date_created":1518700549,"tags":["general"]}}'
请发表评论