autonomys / auto-drive

Auto Drive is a decentralized content-addressed storage solution built on the Autonomys Network, leveraging its underlying permanent storage layer known as the Autonomys Distributed Storage Network (DSN).
2 stars 1 forks source link

Auto Drive: Autonomys Network's Data Access Layer

Autonomys Banner

Auto Drive is a decentralized content-addressed storage solution built on the Autonomys Network, leveraging its underlying permanent storage layer known as the Autonomys Distributed Storage Network (DSN). It provides users with a secure and efficient way to store, share, and manage digital assets with the assurance of long-term data persistence.

Auto Drive offers a user-friendly interface for uploading and downloading files, as well as an SDK and API for developers to integrate storage capabilities into their applications.

Features

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/autonomys-data-storage.git
    cd autonomys-data-storage
  2. Install dependencies:

    yarn install
  3. Set up environment variables: Create a .env file in the root directory and add the following:

    RPC_ENDPOINT=ws://localhost:9944
    KEYPAIR_URI=//Alice

    Adjust the values as needed for your Autonomys Network setup.

Running the Service

Start the server:

cd backend
yarn start

The server will start on http://localhost:3000.

API Endpoints

Architecture

The service is built with the following components:

  1. Storage Manager: Handles data chunking, reassembly, and metadata management
  2. Transaction Manager: Manages blockchain transactions for data storage
  3. API Layer: Provides RESTful endpoints for interacting with the service

Testing

Run the test suite:

yarn test